I need to split a table into two tables at a particular row number using jQuery. Can this be done?
I googled but couldn\'t find anything. jQuery\'s pretty powerful,
This can also be done with clone()
var $mainTable = $("table.mainTable"); $mainTable.clone().appendTo($mainTable.parent()).find('tbody tr').slice(0, 4).remove(); $mainTable.find('tbody tr').slice(4).remove();