June 1999
Intermediate to advanced
540 pages
21h 39m
English
Option — an option in a Select box
Client-side JavaScript 1.0; enhanced in JavaScript 1.1
HTMLElement
select.options[i]
Option inherits the properties of HTMLElement and also defines the following:
Whether an object is selected by default.
The position of the option.
Whether the option is selected.
The label for an option. JavaScript 1.0; read/write in JavaScript 1.1.
The value returned when the form is submitted.
Read now
Unlock full access