I’m new to jQuery and hope someone can point me in the right direction. I’m tring to validate a web form and return a message to the visitor that a business address is required. I would like to block yahoo, hotmail, gmail and aol domains. I found the ‘accept:’ method, but is there an "exclude:’ or something simular? here is the code I have:
$(document).ready(function () {
$("#webform").validate({
errorPlacement: function(error, element) {
error.appendTo( element.parents("div.field:first").find("div.clear:first") );
},
onfocusout: false,
onkeyup: false,
onclick: false,
debug: false,
rules: {
email_field: {
required: true,
email: true,
accept: 'yahoo.com'
}
} // rules
}); // validate
}); // function