NOTE!
- As of tablesorter version 2.9+, this widget can no longer be applied to versions of tablesorter prior to version 2.8.
- Sort one or more columns, then reload the page to see that this widget remembers the last table sort.
- Sort saving requires the new "$.tablesorter.storage()" function included with the "jquery.tablesorter.widgets.js" file (v2.1).
- Because this widget uses jQuery's
parseJson()
function, it requires jQuery version 1.4.1+.
- Added a
saveSortReset
method which only clears the stored information (v2.7.11).
Demo
Account # |
First Name |
Last Name |
Age |
Total |
Discount |
Diff |
A43 |
Peter |
Parker |
28 |
9.99 |
20.3% |
+3 |
A255 |
John |
Hood |
33 |
19.99 |
25.1% |
-7 |
A33 |
Clark |
Kent |
18 |
15.89 |
44.2% |
-15 |
A1 |
Bruce |
Almighty |
45 |
153.19 |
44% |
+19 |
A102 |
Bruce |
Evans |
56 |
153.19 |
23% |
+9 |
Page Header
<link rel="stylesheet" href="css/blue/style.css">
<script src="js/jquery-latest.min.js"></script>
<script src="js/jquery.tablesorter.min.js"></script>
<script src="js/jquery.tablesorter.widgets.min.js"></script>
Javascript
HTML