<!DOCTYPE html>
<html>
<body>
<input type="month" id="myMonth" disabled>
<p>Click the button to find out if the month field is disabled.</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> input elements with type="month" are not supported in Internet Explorer or Firefox.</p>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myMonth").disabled;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>