HTMLOptionElement
The option element is represented by the HTMLOptionElement object. It defines the properties shown in the following table.
Name | Description | Returns |
---|---|---|
disabled | the disabled attribute | boolean |
form | Returns the form this element is associated with | HTMLFormElement |
label | the label attribute | string |
selected | the selected attribute | boolean |
value | the value attribute | string |
text | the text attribute | string |
index | Returns the index of this element in the parent select element | number |