HTML DOM Textarea disabled property
Examples
Example 1
Disable a text field:
<script>
document.getElementById("mytxt").disabled=true;
</script>
document.getElementById("mytxt").disabled=true;
</script>
Output:
try it"
Definition and Usage
disabled property sets or returns whether you should disable the text box.
Disabled input elements are neither available, nor click. You can set the disabled property until meet certain other conditions are met (such as selecting a checkbox, etc.).
grammar
Set the disabled attribute:
element .disabled=true|false
Returns disabled properties:
element .disabled
Browser Support
All major browsers support the disabled attribute
Textarea object