Solved

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

Posted on 2010-11-10
2
941 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 Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can i make 2 columns? 4 37
binding event to form in window.open 9 35
Button function on table is in trouble 3 20
Html value of radio 14 27
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

808 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