我在我的应用程序上使用jQuery步骤来实现类似向导的情况.我无法找到如何更改为自定义步骤.对此有何帮助?
$(function () {
$("#wizard").steps({
headerTag: "h2",
bodyTag: "section",
transitionEffect: "slideLeft",
enableFinishButton: false,
labels: {
next: $('#next').html(),
previous : $('#previous').html()
},
onStepChanged: function (event, currentIndex, priorIndex)
{
if( priorIndex == 0) {
var selected = $('input[name=radio_wizard]:checked', '#radio_wizard').val()
switch( selected ){
case 1:
// GOTO 1
break;
case 2:
// GOTO 2
break;
case 3:
// GOTO 3
break;
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
怎么做到这一点?
我在我的项目中使用:http://www.jquery-steps.com/Examples#async.这是一个很好的Jquery插件,用于添加向导.
我的问题是关于动态步骤.下一步的内容应取决于上一步的答案.如何通过AJAX调用向我的后端发送其他数据.我的后端将根据该值为下一步服务.
我搜索了文档和源代码,但找不到答案.
你究竟打算如何使用jQuery BootGrid的方法?
我试过了:
$("#presentation-listing-api").bootgrid('remove', [uid]);
Run Code Online (Sandbox Code Playgroud)
似乎没有工作?
文档还没有完成,这没有用.
我正在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)