Validate an email address
How would I check that a user's email address ends in on of the three
@camel.com, @mel.com, @camelofegypt.com
This is my code so far, it just validates whether or not the user has
provided any text
if ($.trim($("#email").val()).length === 0) {
alert('You must provide valid input');
return false;
I want to implement the email address validation into my code.
No comments:
Post a Comment