/ Published in: JavaScript
Checks if value is an e-mail.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function isEmail(add) { if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(add)) { return true; }else{ return false; } }