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