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

Reset steps index when form onFinished #26

Open
kirangv1 opened this issue Dec 6, 2013 · 3 comments
Open

Reset steps index when form onFinished #26

kirangv1 opened this issue Dec 6, 2013 · 3 comments

Comments

@kirangv1
Copy link

kirangv1 commented Dec 6, 2013

I am looking for the functionality to reset the currentIndex of steps to be resetted to the first step once onFinished is called

@AyazSardar
Copy link

Hi,

I had the same problem and added this to my jquery.steps.js file:
$.fn.steps.reset = function ()
{
var wizard = this,
options = getOptions(this),
state = getState(this);

    return goToStep(wizard, options, state, 0);

};

And in my HTML file i call this function to reset to page 0:
$( "#wizard" ).steps('reset');

Regards

@skasinetz
Copy link

Worked great. Thx!

@septrinur
Copy link

the section is hidden, can you solve this?

This was referenced Jul 1, 2015
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

4 participants