我用过这个插件: http://vinceg.github.io/twitter-bootstrap-wizard/
最后,下一个按钮被禁用,任何人都可以帮助我如何启用它。?
最佳答案
为此,您必须使用以下功能:
$('#rootwizard .finish').click(function() {
$('#rootwizard').find("a[href*='tab1']").trigger('click'); // if you want to go to first tab again. Else do what ever you want to do like enable next button again.
});
你必须在最后一个按钮上完成类(class)。
Or
如果您只想在下一个按钮上执行此操作,可以执行以下操作:
$('#rootwizard').bootstrapWizard({onTabShow: function(tab, navigation, index) {
var $total = navigation.find('li').length;
var $current = index+1;
if($total == $current){do what you want on last next button.} }});
关于javascript - 如何启用 Bootstrap 向导最后一个按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46116045/