Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-11-10
2
Medium Priority
?
973 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 1500 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

972 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