jquery datepicker : Validate current input value?
问题 I've been using the Datepicker plugin from jQuery UI. I want to be able to validate if the input textbox it is attached to currently has a valid date or not. For example: If someone decides to type in 02/30/2010 I'd like to be able to somehow ask the plugin if that current input value is a valid date (which it is not in this case). Does anyone know how this can be done? 回答1: You can solve your problem by making text box read only and set date format as you like. So User is not able to type