Simplest jQuery Sortable Table Plugin - sorttable.js
File Size: | 4.83 KB |
---|---|
Views Total: | 18657 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

sorttable.js is a small, fast jQuery plugin which provides ascending/descending sort functionality for your html table by click on the table header. The plugin generates 'ascending sort', 'descending sort' and 'no sort' images inside the thead
that allows you to sort table by specific column.
How to use it:
1. Download and insert the sorrtable.js script into your html document. Make sure you first have jQuery library included.
<script src="//code.jquery.com/jquery-1.12.1.min.js"></script> <script src="sorttable.js"></script>
2. Just call the function on your existing table and done. Note that your html table must have thead
and tbody
elements.
$("table").addSortWidget();
3. Note that your html table must have thead
and tbody
elements.
<table> <thead> ... </thead> <tbody> ... </tbody> </table>
4. Specify the table sort images.
Simplest-jQuery-Sortable-Table-Plugin-sorttable-js
Change log:
2016-05-22
- Fixed sort issue when elements are numbers
This awesome jQuery plugin is developed by bodik10. For more Advanced Usages, please check the demo page or visit the official website.