Re: Re: Submitting via jQuery

dpfeiffer's picture
Offline
Joined: 07/28/2010
Juice: 28
Re: Re: Submitting via jQuery

I think the problem is that the review page has two submit buttons. "Back" and "Submit Order".
Telling the form to submit doesn't distinguish which submit button to fire, so the first one gets fired.

The solution is to use trigger('click') rather than submit. I use the following code in a block to auto-submit my form:

$('#uc-cart-checkout-review-form input#edit-submit').trigger('click');

Potential Checkout Improvement -- Make the "Review Order" optional? By: Andy (26 replies) Mon, 10/01/2007 - 11:33