class HTMLOptionElement

# class HTMLOptionElement | A selectable choice. More...
Full name | `DOM::HTMLOptionElement`
Definition | `#include <html_form.h>`
Inherits | DOM::HTMLElement [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- HTMLOptionElement ()
- HTMLOptionElement (const HTMLOptionElement &other)
- HTMLOptionElement (const Node &other)
- HTMLOptionElement & operator = (const HTMLOptionElement &other)
- HTMLOptionElement & operator = (const Node &other)
- ~HTMLOptionElement ()
- HTMLFormElement form () const
- bool defaultSelected () const
- void setDefaultSelected ( bool )
- DOMString text () const
- long index () const
- void setIndex ( long )
- bool disabled () const
- void setDisabled ( bool )
- DOMString label () const
- void setLabel ( const DOMString & )
- bool selected () const
- void setSelected ( bool )
- DOMString value () const
- void setValue ( const DOMString & )

#### Protected Methods

- HTMLOptionElement (HTMLOptionElementImpl *impl)

## Detailed Description

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

HTMLOptionElement () | ### HTMLOptionElement

HTMLOptionElement (const HTMLOptionElement &other) | ### HTMLOptionElement

HTMLOptionElement (const Node &other) | ### HTMLOptionElement

HTMLOptionElement (HTMLOptionElementImpl *impl) | ### HTMLOptionElement

[protected]

HTMLOptionElement & operator = (const HTMLOptionElement &other) | ### operator =

Reimplemented from HTMLElement.

HTMLOptionElement & operator = (const Node &other) | ### operator =

Reimplemented from HTMLElement.

~HTMLOptionElement () | ### ~HTMLOptionElement

HTMLFormElement form () | ### form

[const]

Reimplemented from Element.

bool defaultSelected () | ### defaultSelected

[const]

Stores the initial value of the `selected` attribute.

void setDefaultSelected ( bool ) | ### setDefaultSelected

see defaultSelected

DOMString text () | ### text

[const]

The text contained within the option element.

long index () | ### index

[const]

The index of this `OPTION` in its parent `SELECT` .

Reimplemented from Node.

void setIndex ( long ) | ### setIndex

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)

bool disabled () | ### disabled

[const]

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

void setDisabled ( bool ) | ### setDisabled

see disabled

DOMString label () | ### label

[const]

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

void setLabel ( const DOMString & ) | ### setLabel

see label

bool selected () | ### selected

[const]

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

void setSelected ( bool ) | ### setSelected

see selected

DOMString value () | ### value

[const]

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

void setValue ( const DOMString & ) | ### setValue

see value

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:43 2003, using kdoc 2.0a54.