我在多个 twitter-wizard 选项卡中加载了一个表单,我需要在使用 BootstrapValidator 移动到下一个选项卡之前验证当前选项卡
'onNext': function(tab, nav, index) {
var $validator=$('#staffForm').bootstrapValidator(options).bootstrapValidator('validate');
var $valid = $("#staffForm").valid(); <-- this is line 177, the error line
if(!$valid) {
$validator.focusInvalid();
return false;
}
}
我收到这个错误
Uncaught TypeError: undefined is not a function VM7348:177
$.bootstrapWizard.onNext VM7348:177
我究竟做错了什么?