var rows = $('#mytable tbody tr').get(); $.each(rows, function(index, row) { $('#mytable').children('tbody').append(row); });