Error when submit a Webform with Ajax using Jquery I am having a webform in my drupal. I am using the jquery Ajax submit method to submit it.

This is the code I am using.

$("#webform-client-form-59--3").ajaxForm(function() { 

$(".talk-region").html("&lt;h3&gt;Thankyou,&lt;/h3&gt; Our representative will be contacting you soon.&lt;br/&gt;&lt;a href=\'#\'&gt;Close&lt;/a&gt;")

}); 

$("#webform-client-form-59--3").validate();


But when I check in firebug.. Its posting, but the response am getting is

302 Moved Temporarily
        5.2s
If you want to submit a webform, or any form for that matter, with jquery try calling the .click() event for the submit button or call the .submit() function for the form object.  If it's properly 'ajaxified' by drupal (using the use-ajax class) the click on the submit button should def submit the form.

jquery .click()

jquery .submit()