jquery - How to validate an email id using javascript? -


this question has answer here:

i need validate email id user db using javascript/jquery. how can ?

this might helpfull:

function validateemail($email) {     var emailreg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;     return emailreg.test( $email ); } 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -