Last active
January 4, 2016 03:19
-
-
Save quawn/8560638 to your computer and use it in GitHub Desktop.
JS: Clone table header to the bottom of table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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