Find out if a text area is disabled, or not:
var x = document.getElementById("myTextarea").disabled;
Click the button to find out if the text area is disabled.
<!DOCTYPE html> <html> <body> Address:<br> <textarea id="myTextarea"> PO 1234, Main Street U.S.A. New York</textarea> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//from www . j av a2 s . c om var x = document.getElementById("myTextarea").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>