When using <input type="month">
with min
and max
, for example:
<input type="month" min="2020-01" max="2020-12">
Is it possible to disable certain months between them?
When using <input type="month">
with min
and max
, for example:
<input type="month" min="2020-01" max="2020-12">
Is it possible to disable certain months between them?
2
Answers
You could try a custom JavaScript library or a third-party date picker component. I had something on my pc about this one. Modify it to work as you want.
Such widgets are built into browsers. Of course, in different cases a certain control is given. In this case, the maximum possible is to use the native argument step. For example: