Tabbar and Form Submit

We have designed a shopping cart application that uses tabs to move between the shopping and review/submit page. When the user chooses to submit the cart from the review tab, we would like to do a normal form submit (which includes the payment info) but also have the tabs removed since the cart is now empty.



Is there a way to remove the tabbar when the form is submitted? We are using the form Submit function so that it picks up the values from the form fields.



Thanks.

but also have the tabs removed
You can use a code similar to the next
some_form.submit(); //send data
a_tabbar.removeTab(tab_id); //remove not necessary tab

>>to remove the tabbar when the form is submitted
You can use onSubmit event of form and fire any necessary js code from it