How to take advantage of a javascript function in several forms generated by php?

0

I have a registration form that by AJAX it returns the registered data.

In each record of returned records, I have a <div> that shows the form again with the data generated within the fields in the value property. This <div> is hidden and when the user clicks the edit button it is displayed with the data that came from the database.

If you have N entries, you will have N forms with the same id, dynamically generated, how to pass the value of those fields again via AJAX to update?

Thanks in advance for any help. Thank you.

    
asked by anonymous 13.02.2017 / 13:38

0 answers