DOM Object: HTMLOptionElement
|
Properties/Methods |
Functional Description |
Data |
Test Case |
|---|---|---|---|
| form | Returns the FORM element containing the control, or null if this control is not within the context of this form. | hopt001.html | |
| defaultSelected | Stores the initial value of the selected attribute. | false, true | hopt002.html |
| text | The text contained within the option element. | "George Harrison" | hopt003.html |
| index | The index of this OPTION in its parent SELECT. | 2 | hopt004.html |
| disabled | The control is unvailable in this context. | false | hopt005.html |
| label | Option label for use in hierarchical menus. | "leadguitar" | hopt006.html |
| selected | Means that this option is initially selected. | true, false | hopt007.html |
| value | The current form control value. | "George" | hopt008.html |