Support » Plugin: Contact Form 7 » ajaxComplete

  • hi.

    used ajaxComplete function to customize output of response. recently it stoped working. thinking, it related to last update.

    my code:

    $( document ).ajaxComplete(function() {
    	var result = $('.wpcf7-response-output').hasClass('wpcf7-validation-errors') ? 'fail' : 'success';
    	if (result=='success'){ 
    		$('.wpcf7-form').slideUp();
    		$('.send-success').slideDown();
    		setTimeout(function() { 
    			$('.popup').fadeOut();
    			$('body').removeClass('overflow');
    		}, 3000);
    		setTimeout(function() { 
    			$('.wpcf7-form').show();
    			$('.send-success').hide();
    		}, 5000);
    	}
    });
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘ajaxComplete’ is closed to new replies.