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 7755317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:32:16+00:00 2026-06-01T12:32:16+00:00

Can I validate a form on button click without submitting the whole form using

  • 0

Can I validate a form on button click without submitting the whole form using validate plugin of jquery http://bassistance.de/jquery-plugins/jquery-plugin-validation/

this plugin works great with the form validation but actually i want to check whether text written inside a text box is an email or not and if it is an email then I have to check whether it is in my database or not if it is in my database it will give user to submit the form otherwise disable the button right now I am using validate plugin as like this:

$('#child1Email').blur(function(){
    var result=$('#frmAddChild').validate();
    alert(result);
    //if(result)
       //Ajax call to my servlet
    //else
       //Message box showing wrong  email and disabling the submit button
}); 

P.S I kept the class of the text field with id :: child1Email as email so that it will be validated as an email

<form name='frmAddChild' id='frmAddChild' action='addChild' method='post'>
     .
     .
     .
     .
     .
     <input type="text" name="child1Email" id="child1Email" class='email'/>
     .
     .
     .
     .
     .
</form>

But when I alert the result It shows [object Object]enter image description here

Thanks in advance

  • 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-01T12:32:18+00:00Added an answer on June 1, 2026 at 12:32 pm

    Instead of doing the magic in a new code block, you can easily create your own validation rule.

    something like this:

    <input type="text" 
           name="child1Email" 
           id="child1Email" 
           class="email"
           />
    

    using the jQuery Validation Plugin, you can write the custom code as:

    $("form").validate({    
        rules: {      
            child1Email: {        
                required: true,        
                remote: "validate-email.jsp"      
            }    
         },
         messages: {
             child1Email: "Email is correct."   
             },
             submitHandler: function() {
                 alert("Correct email!");
             },
             success: function(label) {
                 label.addClass("valid").text("Valid email!")
             },
             onkeyup: false
    });
    

    the remote option will send you a GET request in this format:

    validate-email.jsp?child1Email=abc%40domain.com 
    

    where you send back true or false depending what will you want to react.

    plus, you can always call the validation yourself, like:

    $("form").submit(function() {
    
        if($("form").valid()) { 
            alert('valid form'); 
            return true; // submit automatically
        }
        else { 
            alert('form is not valid'); 
        }
    
        return false; // no need to submit automatically
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the jQuery validation plugin (from here --> http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) to
I am using the jquery validation plugin to validate a form. I have the
According to http://docs.jquery.com/Plugins/Validation the form tag is necessary in order to do validation. In
I am using the jQuery Plugin Validate to Validate a form I am using.
I have a form that uses jQuery Validate. You click the Submit button, form
I'm trying to use jquery validate. Following the example: http://docs.jquery.com/Plugins/Validation works great and I'd
How would I validate the Third Step on my multi-stage jQuery form? It can
I'm looking for a plugin for jQuery that can validate as a key is
How can I cancel a form submission using GWT? I need to validate the
I'm trying to implement a validation script (bassistance) with a jquery form wizard (

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.