<html>
<body>
<input type="range" id="myRange">
<p>Click the button to disable the slider control.</p>
<p><b>Tip:</b> Try the slider control before and after you have clicked on the button, to see the effect.</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> input elements with type="range" are not supported in IE 9 and earlier versions.</p>
<script>
function myFunction() {
document.getElementById("myRange").disabled = true;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_range_disabled by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 18:16:55 GMT -->
</html>