Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

returning to the first step #25

Closed
pcout opened this issue Jun 11, 2014 · 1 comment
Closed

returning to the first step #25

pcout opened this issue Jun 11, 2014 · 1 comment

Comments

@pcout
Copy link

pcout commented Jun 11, 2014

Hello,

I'm submitting my form using AJAX in a modal. The HTML of the modal is already in the DOM. After I submit my form I just dismiss the modal. So far so good.
Then when i click again to open the modal, in case someone wants to resubmit the form with other values, I reset the form and I need to send the wizard to the first step.

How can I do this (send the wizard to the first step ) ?
I'm need to do this in the success function of the AJAX.

Thanks

@pcout pcout changed the title return to the beginning returning to the first step Jun 12, 2014
@kflorence
Copy link
Owner

You should probably destroy the wizard upon submission and re-create it when the modal is re-opened. See https://github.com/kflorence/jquery-wizard#methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants