I am new to jquery steps,I have requirement to load last step directly once form is loaded. Can anybody suggest how can I achive this?
Asked
Active
Viewed 3,533 times
3
-
1Please add HTML and JS code that you have written – Saqib Amin Jan 18 '16 at 12:58
2 Answers
5
So, instead of putting this in jquery.steps.js (which could cause your changes to be overridden when you upgrade), just put the following on the page you want to use steps in. You set the startIndex
behavior. Below I left some of the other settings so you could see how the Behaviors at jquery steps can be applied.
$("#steps").steps({
headerTag: "h3",
bodyTag: "section",
enableAllSteps: true,
transitionEffect: "slide",
stepsOrientation: "vertical",
startIndex: 1, // Right here, you can set the index of the item you want to change.
});

joshmcode
- 3,471
- 1
- 35
- 50
-1
Assuming you want to go directly to last step, change one property in jquery.steps.js file
startIndex: 0
,
Add your last steps number in place of '0'.

Half Blood Prince
- 951
- 2
- 13
- 25