This time I will share jQuery Plugin and tutorial about 3-state jQuery Table Sorting Plugin – tablesort3s, hope it will help you in programming stack.
tablesort3s is a really small (~3kb) jQuery plugin that adds3-state sorting functionality (ascending, descending and unsorted) to existing html tables. Helps you sort a multi-column html table without page refreshes.
How to use it:
1. Load the jQuery tablesort3s plugin’s style sheet in the document’s head section.
1 |
< link rel = "stylesheet" href = "css/tablesort3s.css" > |
2. Load the jQuery tablesort3s plugin’s JavaScript file after jQuery library but before the </body>
tag.
1 |
< script src = "//code.jquery.com/jquery-1.11.3.min.js" ></ script > |
2 |
< script src = "js/jquery.tablesort3s.js" ></ script > |
3. Bind 3-state sort controls to tables with static content and/or sort/unsort them.
1 |
$( 'table' ).tablesort3s(); |
4. Available options with default values.
12 |
noSortFilter : 'nosort' , |
This awesome jQuery plugin is developed by luciole75w. For more Advanced Usages, please check the demo page or visit the official website.