Input Time disabled Property - Find out if a time field is disabled: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Time

Description

Input Time disabled Property - Find out if a time field is disabled:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<input type="time" id="myTime" disabled>

<p>Click the button to find out if the time field is disabled.</p>

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

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

<script>
function myFunction() {//from w  w w  .j a v a2s.c  o m
    var x = document.getElementById("myTime").disabled;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials