Home
Miscellaneous
Select Box Sorter
This script will sort options in a select box. The first select box is the criteria and the second is the select box to be sorted. In short, it takes the options and adds them to an array, then removes the options for the select box, sorts the array then addes the sorted array of options to the select box.
|
| The JavaScript Source: Miscellaneous: Select Box Sorter
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!
|
|
|
|
|