【发布时间】:2015-12-28 09:03:51
【问题描述】:
我是 jquery 步骤的新手,我需要在加载表单后直接加载最后一步。 任何人都可以建议我如何做到这一点?
【问题讨论】:
-
请添加您编写的HTML和JS代码
标签: javascript jquery jquery-steps
我是 jquery 步骤的新手,我需要在加载表单后直接加载最后一步。 任何人都可以建议我如何做到这一点?
【问题讨论】:
标签: javascript jquery jquery-steps
因此,不要将它放在 jquery.steps.js 中(这可能会导致您的更改在升级时被覆盖),只需将以下内容放在您要使用步骤的页面上。您设置 startIndex 行为.下面我留下了一些其他设置,以便您了解如何应用行为at jquery steps。
$("#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.
});
【讨论】:
假设您想直接进入最后一步,请更改 jquery.steps.js 文件中的一个属性
startIndex: 0,
添加您的最后步骤编号代替“0”。
【讨论】: