HTML <textarea> disabled attribute
HTML <textarea> tag
Example
A disabled text area:
<textarea rows="3" cols="25"
disabled="disabled">
At W3Schools you will find all the Web-building tutorials you need, from
basic HTML to advanced XML, SQL, ASP, and PHP.
</textarea> |
Try it yourself!
|
Definition and Usage
The disabled attribute specifies that a text area should be disabled. A disabled text area is unusable and un-clickable.
The disabled attribute can be set to keep a user
from using a text area until some other condition has been met (like selecting a
checkbox, etc.). Then, a JavaScript is required to remove the disabled value,
and make the text area usable.
Browser Support
The disabled attribute is supported in all major browsers.
Syntax
<texarea disabled="value">
|
Attribute Values
Value |
Description |
disabled |
Specifies that the text area should be disabled |
HTML <textarea> tag
…
|