小编Jak*_*ota的帖子

Jquery步骤->按钮单击->转到步骤

我正在asp.net 应用程序中使用jquery 步骤向导。单击按钮时更改步骤的事件出现问题。file.js 中的初始化步骤

var WizardFunc = function () {
    var wizard = null;
    return {
        WizardSet: function () {
            wizard = $('#order').steps({
                bodyTag: "fieldset",
                transitionEffect: "slideLeft",
                headerTag: "h1",
                autoFocus: true
            });
        },
        WizardStepAdd: function (index, title, contentId) {
            wizard.steps("insert", index, {
                title: title,
                content: "<div id='" + contentId + "'></div>"
            });
        },
        WizardGoToStep: function (index) {
            wizard.steps("setStep", 1);
        },
        WizardStepRemove: function (index) {
            wizard.remove(index);
        }
    }
}();
Run Code Online (Sandbox Code Playgroud)

我尝试调用函数:

$("#new-size-container").on("click", ".add-size", function () { 
WizardFunc.WizardGoToStep(1);}
Run Code Online (Sandbox Code Playgroud)

返回错误:

Not yet …
Run Code Online (Sandbox Code Playgroud)

jquery wizard jquery-steps

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

jquery ×1

jquery-steps ×1

wizard ×1