Kcko
1/29/2014 - 6:37 PM

Clone table header to footer

Clone table header to footer

var $tfoot = $('<tfoot></tfoot>');
$($('thead').clone(true, true).children().get().reverse()).each(function(){
    $tfoot.append($(this));
});
$tfoot.insertAfter('table thead');