3

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?

dyachenko
  • 1,216
  • 14
  • 28
user3683342
  • 43
  • 1
  • 6

2 Answers2

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