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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:42:34+00:00 2026-06-18T06:42:34+00:00

I have a simple form that requires an email to be confirmed, it works

  • 0

I have a simple form that requires an email to be confirmed, it works great if there are no errors. But if I submit with errors jquery validation plugin is adding a display:none to the confirm-email input. It does not add a invalid class not sure whats going on.

JS:

$("#customer-info").validate({
                         debug:true,
                         errorElement: "",
                         submitHandler: function(form) {
                             //TODO need a processing image
                             $.post(form.action, $(form).serialize(), function(result) {
                                 if(result > 0){
                                         // do some stuff
                                     }
                             },"json")
                             return false;
                         }
                });

html:

<form id="customer-info">
    <label for="customer-name">Name</label>
        <input type="text" id="customer-name" name="customer-name" placeholder="first last name" class="required" /><br />
        <label for="customer-email">Email</label>
        <input type="text" id="customer-email" name="customer-email" placeholder="email@gmail.com" class="required email" /><br />
        <label for="confirm-email">Confirm Email</label>
        <input type="text" id="confirm-email" name="confirm-email" placeholder="email@gmail.com" class="required email" equalTo="#customer-email" /><br />
        <label for="notes">Notes</label>
        <textarea id="notes" name="notes" placeholder="Any additional details or changes."></textarea><br />
        <center><input type="submit" value="Go" class="btn-go" /></center>
</form>

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

  • 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-18T06:42:35+00:00Added an answer on June 18, 2026 at 6:42 am

    It seems to work fine when I remove debug: true and errorElement: ''.

    You break it when you define errorElement as '' (nothing).

    By default, it’s errorElement: 'label'.

    Working Demo: http://jsfiddle.net/vHKha/

    $(document).ready(function () {
        $("#customer-info").validate({
            submitHandler: function (form) {
                //TODO need a processing image
                $.post(form.action, $(form).serialize(), function(result) {
                    if(result > 0){
                        // do some stuff
                    }
                },"json")
                return false;
            }
        });
    });
    

    Side note: You also may want to validate your HTML. <center></center> has been deprecated for many years.

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

Sidebar

Related Questions

I have a simple form that uses jQuery validation to notify the user of
I have simple php validation form that is halfway working. If you leave the
I have got a simple signup form that uses jQuery validate to validate the
I'm attempting to use 'jQuery Validate' on a form that requires an email address
I have a simple web form that sends and email out via .NET C#.
I have a simple contact form on a site. There is an email account
I have a simple cakephp form WITH validation that submits to a database. It
I have a simple form like below that I have added the jQuery validations
My form validation works great, but the messages use the JSF component name and
I have an issue, where by I am doing a simple form validation, that

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.