search

Home  >  Q&A  >  body text

How to disable specific months between min and max for input type = month?

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?

P粉748218846P粉748218846271 days ago557

reply all(1)I'll reply

  • P粉460377540

    P粉4603775402024-03-31 15:43:41

    You can try a custom JavaScript library or a third-party date picker component. I have some stuff on my computer about this. Modify it to work as you need.

    
      
        sssccc
        
      
      
        
        sssccc
      
    

    reply
    0
  • Cancelreply