Geoff Chappell - Software Analyst
An instance of the COptionElement class is created for each OPTION and OPTGROUP tag.
coclass: | HTMLOptionElement | {3050F24D-98B5-11CF-BB82-00AA00BDCE0B} |
dispinterface: | DispHTMLOptionElement | {3050F52B-98B5-11CF-BB82-00AA00BDCE0B} |
The table below lists the interface members that the COptionElement class exposes as properties (methods, collections, etc) through its string table in addition to the very many properties that are common to all elements.
Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted. Properties that are listed but not as applying to the option element are shaded yellow.
Property | Attribute | Interface | Member |
---|---|---|---|
appendChild | IHTMLDOMNode | appendChild | |
attributes | IHTMLDOMNode | get_attributes | |
childNodes | IHTMLDOMNode | get_childNodes | |
cloneNode | IHTMLDOMNode | cloneNode | |
dataFld | IHTMLDataBinding | get_dataFld put_dataFld |
|
dataFormatAs | IHTMLDataBinding | get_dataFormatAs put_dataFormatAs |
|
dataSrc | IHTMLDataBinding | get_dataSrc put_dataSrc |
|
defaultSelected | IHTMLOptionElement | get_defaultSelected put_defaultSelected |
|
firstChild | IHTMLDOMNode | get_firstChild | |
form | IHTMLOptionElement | get_form | |
hasChildNodes | IHTMLDOMNode | hasChildNodes | |
index | IHTMLOptionElement | get_index put_index |
|
insertBefore | IHTMLDOMNode | insertBefore | |
label | same | IHTMLOptionElement3 | get_label put_label |
lastChild | IHTMLDOMNode | get_lastChild | |
nextSibling | IHTMLDOMNode | get_nextSibling | |
nodeName | IHTMLDOMNode | get_nodeName | |
nodeType | IHTMLDOMNode | get_nodeType | |
nodeValue | IHTMLDOMNode | get_nodeValue put_nodeValue |
|
ownerDocument | IHTMLDOMNode2 | get_ownerDocument | |
parentNode | IHTMLDOMNode | get_parentNode | |
previousSibling | IHTMLDOMNode | get_previousSibling | |
removeChild | IHTMLDOMNode | removeChild | |
removeNode | IHTMLDOMNode | removeNode | |
replaceChild | IHTMLDOMNode | replaceChild | |
replaceNode | IHTMLDOMNode | replaceNode | |
selected | same | IHTMLOptionElement | get_selected put_selected |
swapNode | IHTMLDOMNode | swapNode | |
text | IHTMLOptionElement | get_text put_text |
|
uniqueID | IHTMLUniqueName | get_uniqueID | |
uniqueNumber | IHTMLUniqueName | get_uniqueNumber | |
value | same | IHTMLOptionElement | get_value put_value |