Email Validation check in javascript

## Used To Validate Email In Javascript

<script >
  function validateEmail(email) {

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

    return emailReg.test( email );

  }

</script>
Please follow and like us:

Check Email Validation using JavaScript in php

function validateEmail(email) {

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

return emailReg.test(email);
}
Please follow and like us: