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

  • SEARCH
  • Home
  • 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 8809751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:57:17+00:00 2026-06-14T02:57:17+00:00

if ( $(#form).validate().form() == true ) { $(‘#form’).submit( function() { var mail = $(#mail_content).val();

  • 0
if ( $("#form").validate().form() == true ) {

    $('#form').submit( function() {
        var mail = $("#mail_content").val();
        $.ajax({  
            type: "POST",  
            url: "process.php",  
            data: "mail="+ mail,  
            success: function(){  
            $('.email').fadeOut(200);
            $('.notified').delay(200).fadeIn(200);
            }  
        });
        return false;
    });

    }

    else {}

i think the

 if ( $("#form").validate().form() == true ) {

is not what is has to be

my resource:

http://docs.jquery.com/Plugins/Validation/Validator/form

the submit ajax part is working, i only want to validate the inputted emailadress

merci for your help

EDIT:

i forgot

i have tried this code

$("#form").validate({
     submitHandler: function(form) {
       $('#form').submit( function() {

        var mail = $("#mail_content").val();
        $.ajax({  
            type: "POST",  
            url: "process.php",  
            data: "mail="+ mail,  
            success: function(){  
                $('.email').fadeOut(200);
                $('.notified').delay(200).fadeIn(200);
            }  
        });
        return false;
    });
     }
    });

but for some reason i have to click the submit button twice…??

see what i mean here:

http://herenhoek.nl/test/

  • 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-14T02:57:18+00:00Added an answer on June 14, 2026 at 2:57 am

    The second code example in your question is almost correct, except for the common mistake of reusing the jQuery object of your form. In this case you do not need to trigger the submit event again because you’re using an AJAX request to handle the process.

    Read the following section of the plugin documentation: Too much recursion

    The correct syntax would be:

    $("#form").validate({
        submitHandler: function(form) {
            var mail = $("#mail_content").val();
    
            $.ajax({  
                type: "POST",  
                url: "process.php",  
                data: "mail="+ mail,  
                success: function() {  
                    $('.email').fadeOut(200);
                    $('.notified').delay(200).fadeIn(200);
                }  
            });
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm calling my form, with additional parameter 'validate : form = MyForm(request.POST, request.FILES, validate=True)
I have this code: <head> <script> $(document).ready(function(){ $('form').validate({ rules: { 'input_name': { email: true}
I have this code: <script> $(document).ready(function(){ $('form').validate({ //rules: { 'input_name': { email: true} },
I've problem with the jQuery validation plugin. $(document).ready(function() { $('input:submit').button(); $('form').validate({ rules: { name:
It is has been suggested that it is best to initialize a $('#form').validate({}) function
I'm combining jquery validate() with the jquery form plugin to submit a form using
I'm using a jquery validate. This is my form: <form > <input type=text id=n1
I'm using jQuery Validate for my form validation. I'm making an Ajax call to
On Page Load... $(document).ready(function () { $(form).validate(); }); On Save Button Click Event... if($('form').valid())
I have a jsp form validate.jsp which contains 2 text fields where user enters

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.