HTMLOptionElement

The option element is represented by the HTMLOptionElement object. It defines the properties shown in the following table.

NameDescriptionReturns
disabledthe disabled attributeboolean
formReturns the form this element is associated withHTMLFormElement
labelthe label attributestring
selectedthe selected attributeboolean
valuethe value attributestring
textthe text attributestring
indexReturns the index of this element in the parent select elementnumber
Home 
  JavaScript Book 
    DOM