I have added a css class validation rule for jquery validator as follows:
jQuery.validator.addClassRules({
requiredDatepicker: {
required: true,
date: true
}
});
However, when doing this I get the default error messages. How can I assign custom error messages when using addClassRules()?