1) How to dynamically add duplicate UI?
- Some thing like
.clone()[
^] would be useful.
2) Logic to save in the database
- It should be yours because nobody knows how you are going to process the elements. Its as simple as get values from fields,make a call to web method and store it to DB.
3) Again show the saved UI
- At the time of loading the data, count the number of records, generate fields for them and assign a value. From here, whenever some one clicks add button, step one should start.
Regards...