Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <input type="month" id="myMonth"><br><br> <button onclick="disableBtn()">Disable Month Field</button> <button onclick="undisableBtn()">Undisable Month Field</button> <p><strong>Note:</strong> input elements with type="month" do not show as any date field/calendar in Firefox.</p> <script> function disableBtn() { document.getElementById("myMonth").disabled = true; } function undisableBtn() { document.getElementById("myMonth").disabled = false; } </script> </body> </html>