org.w3c.dom.html
public interface HTMLOptionElement extends HTMLElement
Method Summary | |
---|---|
boolean | getDefaultSelected()
Stores the initial value of the selected attribute. |
boolean | getDisabled()
The control is unavailable in this context. |
HTMLFormElement | getForm()
Returns the FORM element containing this control.Returns
null if this control is not within the context of a form. |
int | getIndex()
The index of this OPTION in its parent SELECT . |
String | getLabel()
Option label for use in hierarchical menus. |
boolean | getSelected()
Means that this option is initially selected. |
String | getText()
The text contained within the option element. |
String | getValue()
The current form control value. |
void | setDefaultSelected(boolean defaultSelected) |
void | setDisabled(boolean disabled) |
void | setIndex(int index) |
void | setLabel(String label) |
void | setValue(String value) |
selected
attribute.FORM
element containing this control.Returns
null if this control is not within the context of a form.OPTION
in its parent SELECT
.