I am trying to add a row to a table. I found that we can use the clone () method to duplicate an existing row. My table has two text inputs in two different elements <tr>. Cloning the last line also duplicates the values in my text inputs, which I don't want? How can I clone a string without duplicating values?
Here is what I still have:
$("#table-1 tr:last").clone();
source
share