Contents Index Topic Contents | ||
Previous Topic: IHTMLOptionElement::put_selected Next Topic: IHTMLOptionElement::put_value |
IHTMLOptionElement::get_selected
HRESULT get_selected( VARIANT_BOOL *p );Indicates whether this item is the default.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives TRUE if the item is the default, or FALSE if not.
This attribute is used to determine 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 only submitted when the control's value does not match the default value. Therefore, changing this value changes the rule for whether the value is submitted with the form.
The first item is selected by default.
See also put_selected
IHTMLOptionElement::put_selected
HRESULT put_selected( VARIANT_BOOL v );Indicates whether this item is the default.
- Returns S_OK if successful, or an error value otherwise.
- v
- Selected flag. Setting this parameter to TRUE selects the item; setting it to FALSE deselects it.
This attribute is used to determine 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 only submitted when the control's value does not match the default value. Therefore, changing this value changes the rule for whether the value is submitted with the form.
The first item is selected by default.
See also get_selected
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.