Home >Web Front-end >JS Tutorial >javascript table sorting and header floating effect (extended SortTable)_javascript skills
1. SortTable instructions
SortTable
version 2
7th April 2007
Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/
Instructions:
Download this file
Add
to your HTML
Add class="sortable" to any table you'd like to make sortable
Click on the headers to sort
Thanks to many, many people for contributions and suggestions.
Licenced as X11: http://www.kryogenix.org/code/browser/licence.html
This basically means: do what you want with it.
By default, the sorting function will be added to all columns. For columns that do not need to be sorted, you can add CSS: "sorttable_nosort", such as |
Name | Age |
Zhang San | 21 |