jQuery步骤->单击按钮->转到步骤 [英] Jquery Steps ->button click->go to step
本文介绍了jQuery步骤->单击按钮->转到步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在asp.net应用程序中使用 jquery步骤向导. 单击按钮时,事件更改步骤有问题. 使file.js中的步骤详细化
I'm using the jquery steps wizard in asp.net application. I have problem with event to change step when click the button. Initailize steps in 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);
}
}
}();
我尝试调用函数:
$("#new-size-container").on("click", ".add-size", function () {
WizardFunc.WizardGoToStep(1);}
返回错误:
Not yet implemented!
问:单击按钮时调用函数如何更改步骤索引?
Q: How call function to change step index when button click ?
推荐答案
我认为此插件不支持您当前使用的功能.这是插件的代码
I think this plugin does not support the features you are currently using. Here is the code from plugin
/**
* Sets a specific step object by index.
*
* @method setStep
* @param index {Integer} An integer that belongs to the position of a step
* @param step {Object} The step object to change
**/
$.fn.steps.setStep = function (index, step)
{
throw new Error("Not yet implemented!");
};
/**
* Skips an certain amount of steps.
*
* @method skip
* @param count {Integer} The amount of steps that should be skipped
* @return {Boolean} Indicates whether the action executed
**/
$.fn.steps.skip = function (count)
{
throw new Error("Not yet implemented!");
};
这篇关于jQuery步骤->单击按钮->转到步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文