I'm using the following code (with jQuery Validation Plugin) to validate an email address:
$(".schedule-tour-form").validate({
rules: {
Email: {
required: true,
email: true
}
},
});
<input id="email" name="Email" class="email" type="email" placeholder="name@email.com" />
Problem is it still allows emails without domain suffixes. For example it validates "test@test" How to I require a domain suffix?