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.
ajaxChange
This plugin enhances the change event for select boxes. It only has two features:
- disable: automatically disable the select box when the change event is triggered (for example, to avoid multiple AJAX request requests)
- undo: reset the selected index to its original value before the change event had been triggered (for example, if the result of an AJAX request reveals that the new selected index is invalid)
initialization:
$("select").ajaxChange(func [, options]);
- "func" is a function to be executed on change
- "options" is an object with two attributes
- - boolean "disable" [true]
- - boolean "undo" [true]
control:
$("select").ajaxChange("abort");
- if disable is set, the select box is enabled.
- if undo is set, the selectedIndex is set to the original value.
$("select").ajaxChange("done");
- if disable is set, the select box is enabled, otherwise "done" is irrelevant.
