Javascript examples for DOM HTML Element:Input Number
Input Number disabled Property - Find out if a number field is disabled
<!DOCTYPE html> <html> <body> <input type="number" id="myNumber" value="2" disabled> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {/*from w w w .ja v a2 s . c o m*/ var x = document.getElementById("myNumber").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>