Skip to content

Instantly share code, notes, and snippets.

@pdfcrowd
pdfcrowd / gist:1014068
Created June 8, 2011 09:10
Split table with <thead> using jQuery
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script>
// If *table* defines <thead> then this function replaces the table with N
// tables separated by a page break. Each new table starts with <thead> and its
// height is at most maxHeight pixels.
//
// *table* must not have the id attribute since it is cloned N-times. Use the