Latest news
Home » jQuery » jQuery email validate function

jQuery email validate function

jQuery email validate  function

 

function validEmail(emailText){

  var pattern  = /^([w-.]+@([w-]+.)+[w-]{2,4})?$/;

      if (pattern.test(emailText)) {

          return true;

      } else {

          return false;

      }

}

Leave a Reply

x

Check Also

How to Check Expired Sessions using jQuery Ajax and PHP

We can achieve using the php and ajax.The following ajax call execute in every 10 ...