ISelect interface makes a protocol for all kind of select elements (standard html and custom model)
Clear all selected entries. This is only valid when the SELECT supports multiple selections.
Deselect the option at the given index. This is done by examining the "index" attribute of an element, and not merely by counting.
| Name | Type | Description |
|---|---|---|
index | Number | The option at this index will be deselected |
Deselect all options that have a value matching the argument. That is, when given "foo" this would deselect an option like:
| Name | Type | Description |
|---|---|---|
value | string | The value to match against |
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
<option value="foo">Bar</option>
| Name | Type | Description |
|---|---|---|
text | string | The visible text to match against |
All selected options belonging to this select tag
The first selected option in this select tag (or the currently selected option in a normal select)
All options belonging to this select tag
Whether this select element supports selecting multiple options at the same time? This is done by checking the value of the "multiple" attribute.
Select the option at the given index. This is done by examining the "index" attribute of an element, and not merely by counting.
| Name | Type | Description |
|---|---|---|
index | Number | The option at this index will be selected |
Select all options that have a value matching the argument. That is, when given "foo" this would select an option like:
<option value="foo">Bar</option>
| Name | Type | Description |
|---|---|---|
value | string | The value to match against |
Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
<option value="foo">Bar</option>
| Name | Type | Description |
|---|---|---|
text | string | The visible text to match against |