Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

selected property

[This documentation is preliminary and is subject to change.]

Sets or retrieves whether the option in the list box is the default item.

HTML 4.01 Specification, Section 17.6.1


HRESULT value = object.put_selected(VARIANT_BOOL v);HRESULT value = object.get_selected(VARIANT_BOOL* p);

Property values



Default. Item is not selected as the default.


Item is selected as the default.

Standards information


If the property is not set, the first item is selected by default.

The property determines whether a value is submitted with the form. If the value of the control matches the default value, the control's value is not submitted. The value is submitted only when the control's value does not match the default value.

To select an item in HTML, it is not necessary to set the value of the IHTMLOptionElement::selected attribute to true. The mere presence of the IHTMLOptionElement::selected attribute sets its value to true.

See also




Build date: 6/6/2012

Community Additions

© 2015 Microsoft