Javascript examples for DOM HTML Element:Input Range
Input Range disabled Property - Find out if a slider control is disabled or not:
<!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>