我在我的项目中使用jQuery SmartWizard 3.3.1。我有5个步骤,我希望在每个状态中启用所有步骤(class=“done”isdone="1")。我尝试使用下面的HTML代码来实现这一点,我已经尝试过这个答案。了
...
<a href="#step-4" rel="4" class="done" isdone="1"></a>
<a href="#step-5" rel="5" class="done" isdone="1"></a>
...

页面加载之后,它将更改为class="disabled" isdone="0",并使向导在没有一个一个步骤的情况下不会遍历。我翻阅了文档,却找不到相关的信息来实现这一目标。我们是否可以通过智能向导配置来实现这一目标?否则,解决这个问题的最好办法是什么?
我的智能手表在下面:
function init_SmartWizard() {
"undefined" != typeof $.fn.smartWizard && (console.log("init_SmartWizard"), $("#wizard").smartWizard(), $("#wizard_verticle").smartWizard({
transitionEffect: "slide",
enableAllSteps: true,
anchorClickable : true, // Enable/Disable anchor navigation
enableAllAnchors : true, // Activates all anchors clickable all times
markDoneStep : true, // add done css
enableAnchorOnDoneStep : true // Enable/Disable the done steps navigation
}), $(".buttonNext").addClass("btn btn-success"), $(".buttonPrevious").addClass("btn btn-primary"), $(".buttonFinish").addClass("btn btn-default"))
}发布于 2018-06-08 13:47:50
我也有同样的问题,修复应该分组锚设置如下:
$('#smartwizard').smartWizard({
anchorSettings: {
anchorClickable: true, // Enable/Disable anchor navigation
enableAllAnchors: true, // Activates all anchors clickable all times
markDoneStep: true, // add done css
enableAnchorOnDoneStep: true // Enable/Disable the done steps navigation
},
});这样就可以单击任何标题。但是,这并没有改变他们从灰暗的状态。
https://stackoverflow.com/questions/48493681
复制相似问题