Javascript examples for DOM HTML Element:Input Month
Input Month disabled Property - Find out if a month field is disabled or not:
<!DOCTYPE html> <html> <body> <input type="month" id="myMonth" disabled> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {// www . j av a2 s . c om var x = document.getElementById("myMonth").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>