HTML <textarea> disabled attribute
Definition and usage
disabled
The attribute is a boolean attribute.
When present, it specifies that the text area should be disabled.
Disabled text area is not available and text cannot be selected (cannot be copied).
can be set disabled
Properties that prevent users from using the text area until other conditions are met (for example, checking a checkbox, etc.). Then, JavaScript can remove the disabled value to make the text area available.
Example
Disabled text area:
<textarea disabled> At codew3c.com, you will learn how to develop websites. We provide free tutorials for all Web development technologies. </textarea>
Syntax
<textarea disabled>
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |