Help Center

Local Navigation

HTML element: <textarea>

Availability

BlackBerry® Device Software 3.7 or later

The <textarea> element defines a text field control that accepts multiple lines of text. If specified, the text field can contain read-only text, which is displayed to the user in the text area.

Attributes

Attribute

Value

Description

Availability

cols (required)

number

This attribute specifies the width of the text field control, in number of characters.

3.7 or later

disabled

When specified, this attribute indicates that the <textarea> element is initially disabled.

4.6 or later

inputmode

inputmode-tokens

This attribute provides a whitespace-separated list of the input mode tokens. The tokens inform the browser of the language scripts or modifiers that the field should accept.

The BlackBerry device must support the language that is associated with the specified input mode tokens. If the BlackBerry device does not support any of the languages that correspond to the specified input mode tokens, then the field uses the default language of the BlackBerry device.

4.7.1 or later

name

text

This attribute specifies a unique name for the <textarea> element.

This is the name part of the name-value pair that associates the form control with the user's input.

3.7 or later

readonly

When specified, this attribute indicates that the user is not allowed to change the content in the <textarea> element.

4.6 or later

rows (required)

number

This attribute specifies the number of lines of text the text field contains.

3.7 or later

Common attributes

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

For more information, see Common attributes.

Event attributes

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

For more information, see HTML event attributes.

Index


Was this information helpful? Send us your comments.