我正在尝试使用tabClass的自定义样式,我的进度条和验证器停止工作:
$('#rootwizard').bootstrapWizard({'tabClass': 'bwizard-steps'}, {
onNext: function(tab, navigation, index) {
var $valid = $("#installForm").valid();
if(!$valid) {
return false;
}
}, onTabShow: function(tab, navigation, index) {
var $total = navigation.find('li').length;
var $current = index+1;
var $percent = ($current/$total) * 100;
$('#rootwizard .progress-bar').css({width:$percent+'%'});
}, onTabClick: function(tab, navigation, index) {
return false;
}
});
我该如何解决这个问题?