Skip to content

Instantly share code, notes, and snippets.

@Rafailong
Created January 29, 2014 18:22
Show Gist options
  • Save Rafailong/8693828 to your computer and use it in GitHub Desktop.
Save Rafailong/8693828 to your computer and use it in GitHub Desktop.
Clone table header to the bottom of table
var $tfoot = $('<tfoot></tfoot>');
$($('thead').clone(true, true).children().get().reverse()).each(function(){
$tfoot.append($(this));
});
$tfoot.insertAfter('table thead');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment