I am quite new with jQuery and I don’t know how to implement this scenario.
For example if I have a form with two text boxes in a raw Name and Email. At the right is a plus button where user can press and another raw will be created bellow with two fields Name and Email, the second raw will have at the right an X button that user can click and that raw will be deleted.
Name: _____ Email: _______ +
Name: _____ Email: _______ X
Name: _____ Email: _______ X
Name: _____ Email: _______ X
- SAVE –
At the bottom of the form there is a Save button. And when user press it the values from all boxes are take and saved … that is not a problem.
My problem is how should I implement the dynamic fields and pick the values from the fields when I press save?
DEMO
Try this code:
your html