Input Month disabled Property - Find out if a month field is disabled or not: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Month

Description

Input Month disabled Property - Find out if a month field is disabled or not:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<input type="month" id="myMonth" disabled>

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

<script>
function myFunction() {//  www  . j av  a2 s  .  c om
    var x = document.getElementById("myMonth").disabled;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials