Java Reference
In-Depth Information
Properties (continued)
Property Name
Description
Introduced
text
Gets the text contained within the <option/> element.
Level 1
value
Gets or sets the value of the value attribute.
Level 1
HTMLOptionCollection
The HTMLOptionCollection object was introduced in DOM Level 2. It contains a list of <option/>
elements.
Property Name
Description
Introduced
length
Gets the number of <option/> elements in the list.
Level 2
Methods
Method Name
Description
Introduced
item(index)
Retrieves the <option/> element at the specifi ed index.
Level 2
namedItem(name)
Retrieves the <option/> element by the specifi ed name. It
fi rst attempts to fi nd an <option/> element with the speci-
fi ed id . If none can be found, it looks for <option/> ele-
ments with the specifi ed name attribute.
Level 2
HTMLParagraphElement
Represents the <p/> element.
Properties
Property Name
Description
Introduced
align
Deprecated. Gets or sets the value of the align attribute.
Level 1
HTMLSelectElement
Represents the <select/> element.
Properties
Property Name
Description
Introduced
disabled
Gets or sets the value of the disabled attribute.
Level 1
form
Gets the HTMLFormElement object containing the <select/>
element. Returns null if the element is not inside a form.
Level 1
Search WWH ::




Custom Search