Let’s assume you have a table and the following Jquery code
var rows = $('#ttable').find('tbody > tr').get();
$('#ttable tbody').append(rows[1]);
Right the rows object gets all the “tr”. The second line, will append row[1] to the table body, so you should get it in the end of the table.
It works fine, but the original row disappear. WHY? This mean, the row don’t duplicate, it just moves.
WHY? and How to fix that??
jQuery’s append function uses Node.appendChild() under the hood and so behaves the same way
from MDC
so like cobbal says, you have to clone the row and append the clone