Home / Free JavaScripts / Other / Here
Cut & Paste Sortable table (IE5, NS6)
|
Description: A "plug and play" script that makes your regular HTML tables sortable! Click on the table headers (donated using <TH> tags), and the column that follows is sorted either in descending or ascending order. Certain rows can be ignored.
Example: Click on the headers (name, grade etc):
Name | Grade | Ranking | Mike Goodman | 84.3 | 3 |
---|---|---|
Ginger Mah | 87.8 | 2 |
Joe Down | 69 | 4 |
Bruce Will | 97.5 | 1 |
Directions: Just download the following zip file tablesort.zip, and refer to sample1.html and sortTable.js to see how to integrate the script into your table. Don't worry, it's extremely straightforward.
JavaScript Tools:
Site Info