CodeIgniter Forums
submit does not work with jquery fields - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: submit does not work with jquery fields (/thread-64887.html)



submit does not work with jquery fields - marcosticreca - 04-07-2016

Sorry for my Inglês, i'm brazilian and not so good.
my problem:
i have a form created byform library  from my collection of libraries.
however there are fields that I add dynamically  (jquery).
. $ ( "# Col") append (text);
when I click submit, I can not retrieve the value passed in this field.
$ This-> input-> post () returns only the fields that was created through the form_input ().
how to proceed?


RE: submit does not work with jquery fields - PaulD - 04-07-2016

Can you show the line of js that is appending the form elements that are not submitting?


RE: submit does not work with jquery fields - heat23 - 04-08-2016

Make sure you are appending in-between the <form> </form> tags. Posting your code would be helpful