Thanks to all the people who have tested and used the multiselect before. I’ve taken the improvements, suggestions, and bug-fixes and am now happy with a new version of it.
Multiselect takes a normal
<select multiple="multiple"> and converts it dynamically into a more user-friendly interface.
An example of the new and improved version can be found here.
Points of note
- you can now “select all” and “select none”
- a new “reset” link brings the select box back to how it was originally
- the script works even if you have more than one multiselect box
name of the
<select> must end in ‘
‘. While this is specifically against W3C rules, there does not seem to be any alternative method to pass on multiple values for one variable.
To use, simple download the script and link to it in your webpage.
This script should work in all major browsers. If it doesn’t work in the one you’re testing in, then please alert me.