I am using the jQuery.steps plugin (http://www.jquery-steps.com/) to guide the users in an internal webpage.
So far so good, now I am facing a little issue, I do have 5 Steps at the moment, what I need to achieve now is: If in the first step a special value from a dropdown is selected, I have to skip the steps 2 and 4 since these are not required at this moment.
Do you guys may have any solution for this?
I hope you get my question and please let me know if you do need additional information.
Thanks!
In the
jquery.steps.js
add class to
<ul role=\"tablist\" class=\"tablist\"></ul>
(line 1037)change functions
goToNextStep
&goToPreviousStep
toThen add these functions at the bottom of your file
Now, initialize which step you want to skip
Disable skip
There are events called
onStepChanging
,onStepChanged
which could be passed to theform.steps
. You can write a function to validate your form and steps in that and based on thecurrentIndex,newIndex
you can trigger the next tab.I am attaching here the link for the same which would help you.