Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using jquery steps ,how can we load last step directly

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?

like image 447
user3683342 Avatar asked Dec 08 '25 10:12

user3683342


1 Answers

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.
    });
like image 155
joshmcode Avatar answered Dec 09 '25 22:12

joshmcode



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!