Select.options[] (Collection)

An array of options objects one each per menu item.

Availability:

JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
Property/method value type:Collection object
JavaScript syntax:-mySelect.options

You can create new option items dynamically with the Option() constructor. They can then be assigned into the array of options. If you want to remove one, then simply assign null to its array entry and the option will be removed from the popup menu.

See also:Option(), Option.index, OptionsArray object, Select.multiple, Select.selectedIndex

Property attributes:

ReadOnly.