SELECT TAG and ATTRIBUTES

<SELECT></SELECT>

This element defines a selection list within a form. Depending on the form of the selection list, the control allows the user to select one or more list options.


ATTRIBUTES

CLASS = "class name(s)"
DISABLED
MULTIPLE
NAME = "unique alphanumeric identifier"
SIZE = "number"
STYLE = "style information"

EVENTS

onblur
onchange
onclick
ondblclick
onfocus
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup


CLASS  See Cascading Style Sheets (CSS) Information.

DISABLED  This attribute is used to turn off a form control so that elements will not be submitted, and will not receive any focus from the keyboard or mouse. Disabled form controls will not be part of the tabbing order. The browser may also gray out the form that is disabled in order to indicate to the user that the form control is inactive. This attribute requires no value.

MULTIPLE  This attribute allows the selection of multiple items in the selection list. The default is single-item selection.

NAME  This attribute allows a form control to be assigned a name so that it can be referenced by a scripting language. NAME is supported by older browsers such as Netscape 2-generation browsers, but the W3C encourages the use of the ID attriubte. For compatibility purposes both may have to be used.

SIZE  This attribute sets the number of visible items in the selction list. When the MULTIPLE attribute is not present, only one entry should show; however, when MULTIPLE is present, this attribute is useful to set the size of the scrolling list box.

STYLE  See Cascading Style Sheets (CSS) information.

Back to Top