HTMLOptionElement Class Reference
from PyKDE4.khtml import *
Inherits: DOM.HTMLElement → DOM.Element → DOM.Node
Namespace: DOM
Detailed Description
A selectable choice. See the <a
href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-OPTION">
OPTION element definition  in HTML 4.0.
Method Documentation
| bool defaultSelected | ( |  | self ) |  | 
 
Stores the initial value of the selected
attribute.
 
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  in HTML 4.0.
 
The index of this OPTION in its parent
SELECT .
 
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  in HTML 4.0.
 
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  in HTML 4.0.
 
| setDefaultSelected | ( | self, |  | 
|  |  | bool | a0 | 
|  | ) |  |  |  | 
 
 
| setDisabled | ( | self, |  | 
|  |  | bool | a0 | 
|  | ) |  |  |  | 
 
 
| setIndex | ( | self, |  | 
|  |  | long | a0 | 
|  | ) |  |  |  | 
 
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)
 
| setSelected | ( | self, |  | 
|  |  | bool | a0 | 
|  | ) |  |  |  | 
 
 
The text contained within the option element.
 
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  in HTML 4.0.