I am running into a problem. I was using:
$(this).parents("tr:first").remove();
to delete the row the user clicked on and then:
var row = $('#picTableDisplay tbody>tr:last').clone(true)
.insertAfter('#picTableDisplay tbody>tr:last');
to replace a new (empty) row at the bottom of the table.
But, when the table is full (12 rows) and the user wants to remove a row, the bottom table (that has data) gets cloned (with the data).
In this scenario, how do I remove the clicked on row and add a row to the bottom of the table that is empty?
Thanks.