See also Option.selected , Select.selectedIndex selected A Boolean value indicating whether an option in a Select object is selected. This property is tainted by default. You can set the selected property at any time. The display of the associated Select object updates immediately when you set the selected property for one of its options. With the Option.selected property, you can evaluate every option in the Select.options array to determine multiple selections, and you can select individual options without clearing the selection of other options.
Examples See the examples for defaultSelected .
A string specifying the text of an option in a selection list. In previous releases, you could set the text property but the new value was not reflected in the Select object. You can set the text property at any time and the text displayed by the option in the selection list changes. Examples Example 1. In the following example, the getChoice function returns the value of the text property for the selected option.