HTML textarea disabled attribute


A disabled text area:
<textarea rows="3" cols="25" disabled="disabled">
1000source codes is to share tutorials on all programming languages

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.


<texarea disabled="value">

Attribute Values

Value Description
disabled Specifies that the text area should be disabled
HTML textarea disabled attribute Reviewed by 1000sourcecodes on 02:15 Rating: 5
Powered by Blogger.