This can be done by using a regular expression, below is a sample function that checks if an e-mail address has the correct syntax: function checkMail(email){ |
|
Web Development > JavaScript >
How to check if the entered e-mail address is valid?
|