-3

I need to validate an email ID for a user from DB using javascript/jQuery. How can I do that ?

magesh
  • 9
  • 1

1 Answers1

0

This might be helpfull:

function validateEmail($email) {
    var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
    return emailReg.test( $email );
}
iz25
  • 274
  • 1
  • 11