[jQuery] fadeIn to ajax submit succes callback
Hi this is my code:
$(document).ready(function() {
var options = {
target:'.cfjq_form_target4',
beforeSubmit: function(){
$('.cfjq_form_target4').empty();
$('.loading4').show();
},
success: function() {
$('.loading4').hide();
}
};
$(".cfjq_form4").validate({
errorContainer: $(".messageBox4"),
errorLabelContainer: $(".messageBox4 ul"),
wrapper: "li",
submitHandler: function(form) {
$(form).ajaxSubmit(options);
}
});
});
If I change my success like this:
success: function() {
$('.loading4').hide();
$
('.cfjq_form_target4').fadeIn('slow');
}
Firefox do not show the fade effect at all.
IE7 do not validate any more the form and also loose the ajax
behavior.
Do I miss something.
Andrea