Input Range disabled Property - Find out if a slider control is disabled or not: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Range

Description

Input Range disabled Property - Find out if a slider control is disabled or not:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<input type="range" id="myRange" disabled>

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

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

<script>
function myFunction() {/*from  w w w .  ja  v a  2s  . co m*/
    var x = document.getElementById("myRange").disabled;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials