jquery datepicker and custom validation
问题 I need to add custom validation(I think) for validating input from an user. Here's my use case: I'm using the jquery ui datepicker for selecting dates, with localization like this: $.datepicker.setDefaults( $.datepicker.regional[ currentLocale ] ); I use the bassistance validation plugin, and using rules for date:true and such does not work with different formats(or if they do please tell me how!). So I've made my own date validation methods like this $.validator.addMethod("validDate",