Javascript examples for DOM HTML Element:Input Email field
Input Email disabled Property - Find out if an email field is disabled:
<!DOCTYPE html> <html> <body> E-mail: <input type="email" id="myEmail" disabled> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {/* ww w .j a va 2 s .co m*/ var x = document.getElementById("myEmail").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>