Javascript examples for DOM HTML Element:Textarea
Textarea readOnly Property - Find out if a text area is read-only or not:
<!DOCTYPE html> <html> <body> Address:<br> <textarea id="myTextarea"> Main Street//ww w .ja v a 2 s . c om New York</textarea> <button type="button" onclick="myFunction()">Test</button> <script> function myFunction() { var v = document.getElementById("myTextarea").readOnly; console.log(v); } </script> </body> </html>