Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

create method

Initializes a new option element.

Syntax


IHTMLOptionElement retVal = object.create(text, value, defaultselected, selected);

Parameters

text [in, optional]

Type: VARIANT

A VARIANT of type VT_BSTR that specifies the text of the element.

value [in, optional]

Type: VARIANT

A VARIANT of type VT_BSTR that specifies the value of the element.

defaultselected [in, optional]

Type: VARIANT

A VARIANT of type VT_BOOL that indicates whether this option is selected by default. If VARIANT_TRUE, this option is selected by default; otherwise, it is not.

selected [in, optional]

Type: VARIANT

A VARIANT of type VT_BOOL that indicates whether this is the default option in the select block. If VARIANT_TRUE, this option is the default; otherwise, it is not.

Standards information

There are no standards that apply here.

Remarks

You can add the element to a select block by using the IHTMLAreasCollection::add method.

See also

IHTMLOptionElement

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.