# class HTMLOptionElement

###

Module | khtml
Namespace | DOM
Class | HTMLOptionElement
Inherits | DOM::HTMLElement

A selectable choice. See the OPTION element definition in HTML 4.0.

### methods

- HTMLOptionElement ( )

  returns ctor

- HTMLOptionElement (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.HTMLOptionElement |

- HTMLOptionElement (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.Node |

- HTMLOptionElement (impl)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  impl | HTMLOptionElementImpl |

- defaultSelected ( )

  returns bool

  Stores the initial value of the selected attribute.

- disabled ( )

  returns bool

  The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

- form ( )

  returns DOM.HTMLFormElement

  ### KDE 4.0: remove

- index ( )

  returns long

  The index of this OPTION in its parent SELECT .

- label ( )

  returns DOM.DOMString

  Option label for use in hierarchical menus. See the label attribute definition in HTML 4.0.

- selected ( )

  returns bool

  Means that this option is initially selected. See the selected attribute definition in HTML 4.0.

- setDefaultSelected (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see defaultSelected

- setDisabled (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see disabled

- setIndex (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | long |

  see index

  This function is obsolete - the index property is actually supposed to be read-only (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)

- setLabel (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see label

- setSelected (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see selected

- setValue (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see value

- text ( )

  returns DOM.DOMString

  The text contained within the option element.

- value ( )

  returns DOM.DOMString

  The current form control value. See the value attribute definition in HTML 4.0.