HTML element: <textarea>
Availability
|
Partial support as of BlackBerry®
Device Software version 3.7.
Full support as of BlackBerry Device Software version 4.6.
|
The <textarea> element specifies a multiline text entry field in a form. It can optionally contain plain text, which is displayed to the user in the text area.
Differences between HTML, XHTML, and XHTML-MP
None.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
cols
|
number
|
Required. This attribute specifies the horizontal dimensions of the text area, in number of characters.
|
3.7 or later
|
disabled
|
—
|
When specified, this attribute indicates that the <textarea> is initially disabled.
|
4.6 or later
|
name
|
text
|
This attribute provides plain text to display to the user inside the text area.
|
3.7 or later
|
readonly
|
—
|
When specified, this attribute indicates that the content in the <textarea> element cannot be edited by the user.
|
4.6 or later
|
rows
|
number
|
Required. This attribute specifies the vertical dimensions of the text area, in number of characters.
|
3.7 or later
|
Common attributes
|
—
|
The <textarea> element supports the following common attributes:
- class
- dir
- id
- lang
- style
- title
|
4.6 or later
|
Event attributes
|
—
|
The <textarea> element supports the following event attributes:
- onblur
- onkeypress
- onmouseover
- onchange
- onkeyup
- onmouseup
- onclick
- onmousedown
- onselect
- onfocus
- onmousemove
- onkeydown
- onmouseout
|
4.6 or later
|
Index
Was this information helpful? Send us your comments.