Help Center

Local Navigation

HTML element: <select>

Availability

BlackBerry® Device Software 3.7 or later

The <select> element specifies a selection list. A selection list can be a single-selection or a multiple-selection list. A selection list contains one or more option elements.

In a single-selection list, the <option> element with the selected attribute set is selected by default; otherwise, the first option in the list is selected by default.

In BlackBerry Device Software version 4.5 or earlier, the BlackBerry Browser renders multiple-selection list items as a series of check boxes within the drop-down list. In BlackBerry Device Software version 4.6 or later, the BlackBerry Browser renders multiple-selection list items in a listbox, similar to most desktop browsers. The <option> elements with the selected attribute set are selected by default; otherwise, no options are selected.

Attributes

Attribute

Value(s)

Description

Availability

disabled

When specified, this attribute indicates that the selection list is disabled.

4.6 or later

multiple

When specified, this attribute indicates that multiple items can be selected in the selection list.

3.7 or later

name

text

This attribute defines a unique name for the selection list.

3.7 or later

size

number

This attribute specifies the number of items in the drop-down list.

3.7 or later

Common attributes

The <select> element supports the class, dir, id, lang, style, and title attributes.

For more information, see Common attributes.

Event attributes

The <select> element supports the onblur, onchange, onclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.

For more information, see HTML event attributes.

Index


Was this information helpful? Send us your comments.