JavaScript 1.0; enhanced in JavaScript 1.1
Inherits from/Overrides
Inherits from HTMLElement
Synopsis
select.options[i]
Constructor
In JavaScript 1.1, Option objects can be dynamically created with the Option( ) constructor, as follows:
new Option(text, value, defaultSelected, selected)
Arguments
text
An optional string argument that specifies the text property of the Option object.
value
An optional string argument that specifies the value property of the Option object.
defaultSelected
An optional boolean argument that specifies the defaultSelected property of the Option object.
selected
An optional boolean argument that specifies the selected property of the Option object.