7
Contributors
6
Replies
12
Views
5 Years
Discussion Span
Last Post by ankti
0

You should try matching against this expression to check if valid characters were entered for an email address:

/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/

Check out the .match() function. I don't want to completely give you the answer on this.

0

Should show an error message if they enter invalid domain name.

How far do you want to take this? For example, what jwmollman posted does not allow .museum. It does allow .xx which is not a valid extension (yet). I advise to fully read the second linke stbuchok provided. What about arabic domains?

Edited by pritaeas: Added

0

Any budy know about how to perform ajax (email already exist) validation in jsp

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.