IHTMLSelectElement6::value Property

New for Windows Internet Explorer 9

Sets or retrieves the value which is returned to the server when the form control is submitted.

Syntax

HRESULT IHTMLSelectElement6::get_value(BSTR *p);
HRESULT IHTMLSelectElement6::put_value(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives the value of a control object which is passed as a name/value pair to the server, when an object is submitted.
  • v
    BSTR that specifies the value of a control object which is passed as a name/value pair to the server, when an object is submitted.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Individual control objects return a value to the server only if they have been selected by the user.

You may pass server-friendly data directly to the server without confusing the user. The user sees only the innerText displayed, and not the IHTMLSelectElement6::value.