插件是:http
://www.dbarnes.info/jWizard/
初始化如下:
mywizard = $("#wizard").jWizard({
menuEnable: true,
counter: {enable: true},
effects: {enable: true},
buttons: {
cancelHide: false,
cancelType: "button",<button>
finishType: "submit",
cancelText: "Cancel",
previousText: "Back",
nextText: "Next",
finishText: "Submit"
}
});
在对每个步骤进行一些验证之前,我不希望显示下一个按钮。我尝试添加$(".jw-next-button").bind("click", function(){ ... console.log('got here');... if(validation == 'bad') return false});
控制台确实被记录,但向导并没有继续前进。有关改进策略的任何线索或提示?