Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Properties of the Option Object

defaultSelected      Refers to the option that is selected by default from the select box. index                Refers to the zero-based indexed location of an element in the Select.options array. selected             Refers to the selected value of the select box. text                 Refers to the text for the option. value                Refers to the value that is returned when the option is selected.