jQuery(document).ready(function($) {
$('.contact_form_wrap form').validate({
highlight: function(element, errorClass) { $(element).addClass('invalid'); },
unhighlight: function(element, errorClass) { $(element).removeClass('invalid'); },
errorPlacement: function(error, element) {
},
submitHandler: function(form) {
$.post(form.action+'?'+$(form).serialize(),function(){
$(form).siblings('.success').fadeIn(200);
});
}
});
});
TOP