Query Tablesorter Plugin makes dealing with tables even easier!
$(document).ready(function() {
$("table.tablesorter").tablesorter({
"theme": "blue",
"widgets": [
"zebra"
]
});
});
Data passed to the "tablesorter" plugin:
{
"theme": "blue",
"widgets": [
"zebra"
]
}
Tables are constructed with thead
and tbody
. Simply by giving them a class="sortable"
,
the jQuery Tablesorter Plugin makes them 'sortable' and 'striped':
Senate data used with permission from GovTrack.US.
Table sorting is
achieved through jQuery and the
jQuery Tablesorter Plugin
Copyright © David Heitmeyer