Posted By

JuliaKM on 10/03/07


Tagged

form email textmate validation


Versions (?)

form validation email


 / Published in: Other
 

  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  

You need to login to post a comment.