I am using jQuery steps ( https://github.com/rstaib/jquery-steps/wiki ) in order to create step by step form to users to fill out. It works great, however I need to be able to reset it. Once user submitted the form (using ajax so the page doesn't refresh), I would like present a user fresh wizard.
Is there a way to reset the wizard? Or perhaps to reload without reloading the page?
I was able to reset my jQuery steps wizard by adding a few lines of code to the solution here, plus a couple extra lines of code to remove the css classes. You'll still need to reset your form using your preferred library before or after calling this function.
You can use jQuery Form Plugin , Resetting or clearing your form is then very Easy
Or
Or only Special Fields
You can paste this:
in the jquery.steps.js file right after this code:
and call it like this wherever you want:
$('myjquerystepmodal').steps("reset");
a small correction with the custom reset function :
I added a if, in case you try to reset at step 0.