jQuery Validation showErrors Map to Existing Function?
When declaring a validation form using the jQuery Validation plug-in I can override the showErrors handler to customize the output of the message. If I wanted to create several methods for handling and let the designers choose which method they want by just giving the global function name, is that possible?
For example:
STANDARD
$("#MyForm").validate({
rules: {
...
},
showErrors: function (errorMap, errorList) {
... code here ...
}
});
LOOKING TO DO
$("#MyForm").validate({
rules: {
...
},
showErrors: handlingFunctionName
});