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

Javascript examples for DOM HTML Element:Input Week

Description

Input Week disabled Property - Find out if a week field is disabled or not:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<input type="week" id="myWeek" disabled>

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

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

<script>
function myFunction() {/* ww  w .j  a  v  a2s. c  om*/
    var x = document.getElementById("myWeek").disabled;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials