Help Center

Local Navigation

HTML element: <optgroup>

Availability

Partial support as of BlackBerry® Device Software version 3.7.

Full support as of BlackBerry Device Software version 4.6.

The <optgroup> element defines a logical group in a drop-down list of elements.

Differences between HTML, XHTML, and XHTML-MP

None.

Attributes

Attribute

Value(s)

Description

Supported in

disabled

When specified, this attribute initially disables the option group.

4.6 or later

label

text

Required. This attribute provides a label for the option group.

4.6 or later

Common attributes

The <optgroup> element supports the following common attributes:

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

4.6 or later

Event attributes

The <optgroup> element supports the following events:

  • onclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup

4.6 or later

Index


Was this information helpful? Send us your comments.