Created
April 30, 2013 12:09
-
-
Save apuyou/5488319 to your computer and use it in GitHub Desktop.
Datatables without a thead in the DOM
This file contains hidden or 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
| // Move the table's first row to a thead | |
| $(".display tbody tr:first-child").each(function(){ | |
| $(this).closest("table").prepend("<thead></thead>").children("thead").append($(this).remove()); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment