<html>
<body>
<input type="range" id="myRange" disabled>
<p>Click the button to find out if the slider control is disabled.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
let x = document.getElementById("myRange").disabled;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>