【问题标题】:using jquery steps ,how can we load last step directly使用jquery步骤,我们如何直接加载最后一步
【发布时间】:2015-12-28 09:03:51
【问题描述】:

我是 jquery 步骤的新手,我需要在加载表单后直接加载最后一步。 任何人都可以建议我如何做到这一点?

【问题讨论】:

  • 请添加您编写的HTML和JS代码

标签: javascript jquery jquery-steps


【解决方案1】:

因此,不要将它放在 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.
    });

【讨论】:

    【解决方案2】:

    假设您想直接进入最后一步,请更改 jquery.steps.js 文件中的一个属性

    startIndex: 0,

    添加您的最后步骤编号代替“0”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-17
      • 2018-03-28
      • 1970-01-01
      • 2023-01-19
      • 1970-01-01
      • 1970-01-01
      • 2011-07-08
      • 1970-01-01
      相关资源
      最近更新 更多