Find out if a slider control is disabled or not:
var x = document.getElementById("myRange").disabled;
Click the button to find out if the slider control is disabled.
<!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 . j av a 2s. c o m*/ var x = document.getElementById("myRange").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>