/ Published in: JavaScript

Simple javascript email validation
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function checkMail(email){ var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (filter.test(email)) { return true; } return false; }
Comments
