The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Related Selects
jQuery Related Selects is a plugin that allows you to create any number of select boxes whose options are determined upon the selected value of another.
You pass an array or object of select box names, and the select boxes will depend on each other in the order in which they are passed in.
When a select box is changed an AJAX request is sent to the file specified in the onChangeLoad property, passing the selected value of each select box as parameters. The data can be returned in either JSON or HTML format. An option tag must have a legitimate value in order to trigger the events. An option where the value is blank (value="") is used for the defaultOptionText option (see below).
This script provides a high level of customization. You can set the options once for each select to use, or set the options on a select-by-select basis. You can also start your markup with pre-populated options and selected values.
Recommended for jQuery 1.3.x, despite what the release recommendation tells you below.
Downloads
Development
- Login to post comments
