# class HTMLSelectElement

###

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

The select element allows the selection of an option. The contained options can be directly accessed through the select element as a collection. See the SELECT element definition in HTML 4.0.

### methods

- HTMLSelectElement ( )

  returns ctor

- HTMLSelectElement (other)

  returns ctor

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

- HTMLSelectElement (other)

  returns ctor

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

- HTMLSelectElement (impl)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  impl | HTMLSelectElementImpl |

- add (element, before)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  element | DOM.HTMLElement |
  before | DOM.HTMLElement |

  Add a new element to the collection of OPTION elements for this SELECT .

  element - The element to add.

  before - The element to insert before, or 0 for the tail of the list.

- blur ( )

  returns Nothing

  Removes keyboard focus from this element.

- disabled ( )

  returns bool

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

- focus ( )

  returns Nothing

  Gives keyboard focus to this element.

- form ( )

  returns DOM.HTMLFormElement

  ### KDE 4.0: remove.

- length ( )

  returns long

  The number of options in this SELECT .

- multiple ( )

  returns bool

  If true, multiple OPTION elements may be selected in this SELECT . See the multiple attribute definition in HTML 4.0.

- name ( )

  returns DOM.DOMString

  Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

- options ( )

  returns DOM.HTMLCollection

  The collection of OPTION elements contained by this element.

- remove (index)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  index | long |

  Remove an element from the collection of OPTION elements for this SELECT . Does nothing if no element has the given index.

  index - The index of the item to remove.

- selectedIndex ( )

  returns long

  The ordinal index of the selected option. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.

- setDisabled (a0)

  returns Nothing

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

  see disabled

- setMultiple (a0)

  returns Nothing

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

  see multiple

- setName (a0)

  returns Nothing

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

  see name

- setSelectedIndex (a0)

  returns Nothing

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

  see selectedIndex

- setSize (a0)

  returns Nothing

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

  see size

- setTabIndex (a0)

  returns Nothing

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

  see tabIndex

- setValue (a0)

  returns Nothing

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

  see value

- size ( )

  returns long

  Number of visible rows. See the size attribute definition in HTML 4.0.

- tabIndex ( )

  returns long

  Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

- type ( )

  returns DOM.DOMString

  The type of control created.

- value ( )

  returns DOM.DOMString

  The current form control value.