min/max attribute with type = date on HTML5

后端 未结 2 944
夕颜
夕颜 2021-01-14 06:40

I\'m having some problems to set a minimum and a maximum YEAR with HTML5 date input.

Here is my code:



        
2条回答
  •  遥遥无期
    2021-01-14 07:23

    min and max attributes for date input type have very little browser support. You can use jQuery validation as a workaround.

    
    
    

提交回复
热议问题