Search code examples
jquerydomlive

Using jQuery, how can I obtain form data from fields that have been added by manipulating the DOM?


I have a table body that grabs it's rows (and form fields) via AJAX on various events. Everything is working fine, except one part: I can't obtain form data from any of the table's rows after it gets manipulated.

I've played around with the live() function, but I can't seem to get the right setup to pull in the form data.

Any ideas?


Solution

  • I found the issue in my code. Upon rebuilding the table, I had a slightly different field name for the fields than I used when building the table on page load.

    Thank you for your quick responses.