Hi.
I have a form with a dynamic table in which users can add blank rows and fill them in or they can clone rows. When the fields in each row were all text fields, my code worked fine. However, the customer wants dropdown lists in all but one column. The same code that clones the row with all text fields now clones the row, but has blank values for all the cells with dropdown lists. The one cell that is still a text field is copied though.
The code I'm using to do this is:
$(document).on('click', '.copy', function(event) {
$(event.target).closest('tr').clone().appendTo($(event.target).closest('tbody'));
)}
I've tried using clone(true) instead of clone().
}
Thanks for any help you can offer!