/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var x = document.getElementById("p1_email").value; var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (filter.test(x)) {} else { alertMsg += " - " + "Invalid Main Presenter Email Address" + "\n"; }