Ajax Bestiary: A Javascript Field Guide
 
Ajax Bestiary: A Javascript Field Guide
 
 

Slick & Usable Tables with the jQuery Table Sorter Plugin

Posted by Don Albrecht

jquery table sorter

Features:

  • Multi-column sorting
  • Zebra Striping
  • Parsers for sorting text, URIs, integers, currency, floats, IP addresses, dates (ISO, long and short formats), time. Add your own easily
  • Most column types automatically detected.
  • Support for ROWSPAN and COLSPAN on TH elements
  • Support secondary "hidden" sorting (e.g., maintain alphabetical sort when sorting on other criteria)
  • Extensibility via widget system
  • Small code size
  • paging plugin available

Getting Started:


<script type="text/javascript" src="/path/to/jquery-latest.js"></script> 


    <script type="text/javascript" src="/path/to/jquery.tablesorter.pack.js"></script> 

 

 

Tablesorter works on any standard html table, simply add the following to the ready function

        $("#myTable").tablesorter(); 

 

 

Check out Tablesorter at http://tablesorter.com/docs/

  • No Related Post

Leave a Reply