Is it possible to send the Validate error message to other function? As an example, I have a notification function that displays a determined message and fades away after (n) seconds:
notify("My error message", { selector: '#form-notification' });
How to use that notify function with this:
$("#myForm").validate({
submitHandler: function(form) {
var options = {
target: '#save_form',
dataType: 'json',
beforeSubmit: showRequest,
success: showResponse
};
$(form).ajaxSubmit(options);
}
});
Thanks in advance.