Share via


OPTION HTML Object

The OPTION object denotes one choice in a SELECT element.

Properties

Property Data type Access Description
defaultSelected Boolean Read-only Retrieves whether the option is selected by default (by using the presence of the SELECTED attribute in the OPTION tag). The only possible values are True or False.
index Long Read-only Retrieves the zero-based index of the OPTION object in the options collection of the SELECT object.
selected Boolean Read/write Sets or retrieves whether the OPTION object is selected. The only possible values are True or False.
text String Read/write Sets or retrieves the text string specified by the OPTION tag.
value String Read/write Sets or retrieves the values of the OPTION tag.

Requirements

Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.