Baseline Widely available
The disabled
property of the HTMLTextAreaElement
interface indicates whether this multi-line text control is disabled and cannot be interacted with. It reflects the <textarea>
element's disabled
attribute. When false
, this textarea
may still be disabled if its containing element, such as a <fieldset>
, is disabled.
A boolean.
Examplesconst textareaElement = document.getElementById("comment");
if (commentsDisabled) {
textareaElement.disabled = true;
}
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4