/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function validEmail(address){ var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; if(reg.test(address) == false) { return false; }else{ return true; } }