doctype [?]
[strict] [loose] [none]

Selectbox Utility Functions

These functions allowed you to do commonly-required actions with select boxes.

For example, you can easily pass values between two select boxes. This makes a nice Windows-style interface for choosing components, adding and removing items from a list, etc. Options are re-ordered as they are added and removed from the lists. Other functions allow you to select or unselect options, sort options, move options up and down, and add or remove options.

If you are looking for a way to make dynamic select boxes, see Dynamic Option Lists. If you just want to have a "move options between list boxes" interface, use the Option Transfer library which extends these functions and makes the job easier.

Simple Example