form validation email


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



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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.