Class BTM.Form.Select.Dependant
Dependant Drop List object
Defined in: form.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BTM.Form.Select.Dependant(elements, options)
Automatically updates the Options available in each "child" Select when a "Parent" Select is changed
|
| Field Attributes | Field Name and Description |
|---|---|
|
The data extracted from the Select elements
|
|
|
Options Object
|
|
|
The Select elements
|
| Method Attributes | Method Name and Description |
|---|---|
|
display(index)
Display the relevant Options for each Select starting at specified index
|
Class Detail
BTM.Form.Select.Dependant(elements, options)
Automatically updates the Options available in each "child" Select when a "Parent" Select is changed
- Parameters:
- {HTMLElement[]|String[]} elements
- Array of element IDs or element references to bind to
- {Object} options Optional
- options for the Dependant Drop List
- {Boolean} options.sort Optional, Default: true
- flag to sort the Options in each Destination Select after populating it
Field Detail
data
The data extracted from the Select elements
options
Options Object
selectElements
The Select elements
Method Detail
display(index)
Display the relevant Options for each Select starting at specified index
- Parameters:
- {Number} index Optional, Default: 0
- the Select element to start from (starting at 0)