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

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: submit does not work with jquery fields (/showthread.php?tid=64887)



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