Input Email disabled Property - Find out if an email field is disabled: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Email field

Description

Input Email disabled Property - Find out if an email field is disabled:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials