Help Center

Local Navigation

HTML element: <select>

Availability

Partial support as of BlackBerry® Device Software version 3.7.

Full support as of BlackBerry Device Software version 4.6.

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.

Differences between HTML, XHTML, and XHTML-MP

None.

Attributes

Attribute

Value(s)

Description

Supported in

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 following common attributes:

  • class
  • dir
  • id
  • lang
  • style
  • title

4.6 or later

Event attributes

The <select> element supports the following event attributes:

  • onblur
  • onchange
  • onfocus

4.6 or later

Index


Was this information helpful? Send us your comments.