Solved

Using jquery validation plugin, how do I get rid of duplicate error messages?

Posted on 2010-11-10
2
925 Views
Last Modified: 2012-05-10
I am new to jquery, and I'm trying to implement a fairly complicated form validation using the validation plugin. (complicated for me at least).

I have two pages:
http://www.rewardsring.com/sandbox/signupV.html
http://www.rewardsring.com/sandbox/signup2V.html

You can easily view the javascript that I wrote, as it is within the page.

On both pages, I SOMETIMES get duplicate error messages. For example, on page 1, enter the email address "asd@asd.com". Move to the next box, then come back and erase the ".com". The error message appears twice?
This happens in numerous places on both pages.

How do I fix this?
0
Comment
Question by:sjamal_hsj
2 Comments
 
LVL 14

Accepted Solution

by:
sam2912 earned 500 total points
ID: 34117823
Try this instead
'user_email': {             // compound rule
      		required: true,
      		email: "Please enter a valid email address."
      	},

Open in new window

0
 

Author Closing Comment

by:sjamal_hsj
ID: 34298058
Not very explicit instructions
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now