I have a site that uses jQuery Validate (jQuery Validate) and jQuery Form (jQuery Form). My issue is that when I use the success callback on ajaxSubmit, when the success callback gets called on Validate, ajaxSubmit success' callback gets called.
I ajax the form here, and have the submitHandler set to ajaxSubmit under Validate:
/******* Validate Function Options (not complete function) ************/
success: function(label) {
label.addClass("checked");
},
submitHandler: function(form) {
$(form).ajaxSubmit();
}
/******* AjaxForm Options/Initilization ************/
var options = {
target: '#server-response',
success: showResponse,
};
$('#consultation-form').ajaxForm(options);
My dilemma is that when validation is successful (calling the success callback on validation) it calls the success callback from AjaxForm options as well. Spent the last hour on here looking around, that's how I found the submitHandler.
JsFiddle here, won't work because of my post, but it's the js and html in entirety. http://jsfiddle.net/UUDb6/
Thanks for any advice you might have.