How to validate year value in datepicker?

偶尔善良 提交于 2019-12-13 07:39:32

问题


Description:

I'm using Jquery datepicker in my application, and also user is allowed to enter date by keyboard. Everything is working fine but when user enters 000 or 0000 as year then my code is breaking , because there is no year having value '000 or 0000'. So, I want to validate value entered by user, specially year value, b'coz date picker is validating date and month and giving an error accordingly but it is not validating year value.

来源:https://stackoverflow.com/questions/44385743/how-to-validate-year-value-in-datepicker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!