2

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("<h3>Thankyou,</h3> Our representative will be contacting you soon.<br/><a href=\'#\'>Close</a>")

}); 

$("#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
0

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()

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.