class HTMLOptionElement

A selectable choice. More...

Full nameDOM::HTMLOptionElement
Definition#include <html_form.h>
InheritsDOM::HTMLElement
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

A selectable choice. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-OPTION"> OPTION element definition </a> in HTML 4.0.

HTMLFormElement  form ()

[const]

Returns the <code> FORM </code> element containing this control. Returns null if this control is not within the context of a form.

bool  defaultSelected ()

[const]

Stores the initial value of the <code> selected </code> attribute.

void  setDefaultSelected ( bool )

see defaultSelected

DOMString  text ()

[const]

The text contained within the option element.

long  index ()

[const]

The index of this <code> OPTION </code> in its parent <code> SELECT </code> .

Reimplemented from Node

void  setIndex ( 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)

bool  disabled ()

[const]

The control is unavailable in this context. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled"> disabled attribute definition </a> in HTML 4.0.

void  setDisabled ( bool )

see disabled

DOMString  label ()

[const]

Option label for use in hierarchical menus. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-label-OPTION"> label attribute definition </a> in HTML 4.0.

void  setLabel ( const DOMString & )

see label

bool  selected ()

[const]

Means that this option is initially selected. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-selected"> selected attribute definition </a> in HTML 4.0.

void  setSelected ( bool )

see selected

DOMString  value ()

[const]

The current form control value. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-value-OPTION"> value attribute definition </a> in HTML 4.0.

void  setValue ( const DOMString & )

see value


Generated by: ssk@tauon.ph.unimelb.EDU.AU on Wed May 23 05:55:52 2001, using kdoc 2.0a35.