• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 999
  • Last Modified:

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

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:

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?
1 Solution
Try this instead
'user_email': {             // compound rule
      		required: true,
      		email: "Please enter a valid email address."

Open in new window

sjamal_hsjAuthor Commented:
Not very explicit instructions
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now