Email Validation in Jquery
Put this function checkEmail(email)
function checkEmail(email)
{
//regular expression for email
var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
if(pattern.test(email)){
return true;
} else {
return false;
}
}
For Example : checkEmail(email_id)
Put this function checkEmail(email)
function checkEmail(email)
{
//regular expression for email
var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
if(pattern.test(email)){
return true;
} else {
return false;
}
}
For Example : checkEmail(email_id)
8 comments:
Very quickly this site will be famous among all blogging visitors, due to it's good content
Feel free to surf to my web site :: http://drugstoredir2014.com
Everything is very open with a clear clarification of the challenges.
It was really informative. Your site is useful. Many thanks
for sharing!
Feel free to surf to my blog funny images
It's awesome to pay a visit this site and reading
the views of all mates regarding this piece of writing, while I am
also eager of getting know-how.
Here is my webvsite template after effects
I have read so many content regarding the blogger lovers except this piece of writing is in fact a pleasant paragraph,
keep it up.
Stop by my web site :: vinyl windows - ,
I was suggested this blog by my cousin. I'm not sure whether this post is written by him as nobody
else know such detailed about my trouble. You're incredible!
Thanks!
Here is my website - Beats By Dre Cheap
Wow, incredible blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your website is wonderful, let
alone the content!
Also visit my webpage :: pills
Its like you read my mind! You appear to know so
much about this, like you wrote the book in it or something.
I think that you can do with a few pics to drive the
message home a little bit, but instead of that, this
is great blog. An excellent read. I will definitely be back.
Also visit my web page - discount american spirit cigarettes online
Wow that was strange. I just wrote an incredibly long comment
but after I clicked submit my comment didn't show up. Grrrr...
well I'm not writing all that over again. Anyways, just wanted to say superb blog!
Look at my web site Beats By Dre
Post a Comment