<html>
<body>
<input type="range" id="myRange"><br><br>
<button onclick="disableBtn()">Disable Slider Control</button>
<button onclick="undisableBtn()">Undisable Slider Control</button>
<p><strong>Note:</strong> input elements with type="range" are not supported in IE 9 and earlier versions.</p>
<script>
function disableBtn() {
document.getElementById("myRange").disabled = true;
}
function undisableBtn() {
document.getElementById("myRange").disabled = false;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_range_disabled3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:19 GMT -->
</html>