NOTE!
- This widget can be applied to the original plugin. The code is in the "jquery.tablesorter.widgets.js" file.
- 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. New! v2.1
- Because this widget uses jQuery's
parseJson()
function, it requires jQuery version 1.4.1+.
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="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> <script src="js/jquery.tablesorter.min.js"></script> <script src="js/jquery.tablesorter.widgets.min.js"></script>