电子邮件的校验

                      //电邮      
                      var pat=/^[a-zA-Z0-9_\-\.]+@[a-zA-Z0-9_\-\.]+\.[a-zA-Z]{0,4}$/;
                      if(!$("#TextBox6")[0].value.match(pat))
                      {
                         ret=false;
                          $("#TextBox6").css({border:"1px solid red"});
                      }

posted @ 2010-04-16 04:39  jetz  阅读(197)  评论(0编辑  收藏  举报