OPTION TAG and ATTRIBUTES

<OPTION></OPTION>

This element specifies an item in a selection list defined by the <SELECT> element. The closing tag for <OPTION> is optional. This element should only occur within the context of a <SELECT> element.


ATTRIBUTES

CLASS = "class name(s)"
DISABLED
SELECTED
STYLE = "style information"
VALUE = "option value"

EVENTS

onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup


CLASS  See Cascading Style Sheets (CSS) Information.

DISABLED  Presence of this attribute indicates that the particular item is not selectable.

SELECTED  This attribute indicates that the associated item is the default selection. IF not included, the first item in the selection list is the <SELECT> element enclosing the <OPTION> elements has the MULTIPLE attribute, the SELECTED attribute may occur in multiple entries. Otherwise, it should occur only in one entry.

STYLE  See Cascading Style Sheets (CSS) information.

VALUE  This attribute indicates the value to include with the form result when the item is selected.

Back to Top