使用jquery步骤,我们如何直接加载最后一步

use*_*342 3 javascript jquery jquery-steps

我是 jquery 步骤的新手,我需要在加载表单后直接加载最后一步。有人可以建议我如何实现这一目标吗?

jos*_*ode 5

因此,不要将其放在 jquery.steps.js 中(这可能会导致您的更改在升级时被覆盖),只需将以下内容放在要使用步骤的页面上即可。您可以设置行为startIndex。下面我留下了一些其他设置,以便您可以看到如何应用jquery 步骤的行为。

$("#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.
    });
Run Code Online (Sandbox Code Playgroud)