I\'m trying to use the jquery validate plugin to validate a form and submit the contents with an ajax request.
This code is in the head of my document.
Try:
$(document).ready(function() { $('#contact-form').validate({submitHandler: function(form) { var data = $('#contact-form').serialize(); $.post( 'url_request', {data: data}, function(response){ console.log(response); } ); } }); });