Solved

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

Posted on 2010-11-10
2
955 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

615 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