Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:42:56+00:00 2026-06-08T06:42:56+00:00

I have a site that uses jQuery Validate ( jQuery Validate ) and jQuery

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:42:57+00:00Added an answer on June 8, 2026 at 6:42 am

    it looks like you can define a custom URL in the options for jQuery validate and ajax form respectively. eg:

    $("#myform").ajaxForm({
       url: "mypage1.php",
       type: "POST",
       ...
     });
    
    $("#myform").validate({
       url: "mypage2.php",
       type: "POST",
       ...
     });
    

    and you can use similar options for $(form).validate(options);

    You could make a copy of your PHP callback script and change the name, so the validate function uses one script, and the ajaxSubmit uses another.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site that uses the jQuery jEditable plugin (inline editing via AJAX).
I have an ASP.NET site that uses JQuery and ASP.NET UpdatePanel and ScriptManager. On
I have an ASP.NET MVC site that uses both Microsoft Ajax [ Ajax.BeginForm() ]
I have a form select replacement that uses jQuery to show options in a
I have a page with a menu that uses JQuery AJAX calls to populate
We have a web site that uses extensively jQuery and it works fine in
I have installed the Nivo Slider (http://nivo.dev7studios.com/) that uses jQuery on my site which
I have a site that uses a GET form to allow a user to
I have a page on my site that uses jquery. In the jquery script
I have a site that uses the odd header() PHP command after a form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.