jQuery(document).ready( function($) { var errorContainer = $('

Please fill out the required fields

').appendTo('#commentform').hide(); var errorLabelContainer = $('

').appendTo('#commentform').hide(); $('#commentform').validate({ rules: { author: 'required', email: { required: true, email: true }, url: 'url', comment: { required: true, minlength: 20 } }, errorContainer: errorContainer, errorLabelContainer: errorLabelContainer, ignore: ':hidden' }); $.validator.messages.required = '' + $.validator.messages.required; $.validator.messages.email = '» ' + $.validator.messages.email; $.validator.messages.url = '» ' + $.validator.messages.url; });