Problem with clone and append
Hello all,
I am facing a problem using clone method, i'm trying to clone a table row (that contains drop down lists ) and then append it to the same table. but when appending the new row all the drop downs values are reset
The code:
- var rowId; // Equals the id of the row to be clone
- var tableId; // Equals the id of the table
- var newRow = jQuery('[id$='+rowId+']').clone(true);
- jQuery('[id$='+tableId+']').append(newRow);
Anybody could help me ?