I am using jquery.validate.js by Jörn Zaefferer.
All validation is set up perfectly with the following code:
$("#homeForm").validate({
rules: {
email: {
required: true,
email: true
},
mobile:{
required:true,
minlength:11,
maxlength:11,
}
},
});
My problem is that the default email validation will allow the user to leave out the domain suffix, for example test@test is validated successfully...
I would like my email validation to require the user to include the domain suffix of the email they input (.com, .co.uk ETC)
Does anyone have a solution for this problem? Many thanks in advance...