The Option object is used to reference a property of an HTML select list.
An Option object can be created by using the option constructor and specifying the appropriate values.
PropertyDescription
defaultSelectedRefers to the option that is selected by default from the select box
selectedRefers to the selected value of the select box
textRefers to the text for the option
valueRefers to the value that is returned to when the option is selected
Example of the option object