document ready(function() { $('#form').validate({ rules:{ name:{ required:true, minlength:3 }, message:{ required:true }, email:{ required:true, email:true, maxlength:128 }, phone:{ required:true } }, messages:{ name:{ required:"Please enter your name (or pseudonym). " }, email:{ required:"Please enter a valid email address. " }, phone:{ required:"Please enter your phone number. " }, message:{ required:"Please enter your message. " } } });})