JavaScript email validation


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function validate(email) {
  2. var reg = /^([A-Za-z0-9\'_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
  3. if(reg.test(email) == false) {
  4. return false;
  5. }
  6. }

URL: http://zoocha.com/what-we-do/development/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.