I have a form loaded in multiple twitter-wizard tabs whic i need to validate the current tab before moving to the next with 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;
}
}
I get this error
Uncaught TypeError: undefined is not a function VM7348:177
$.bootstrapWizard.onNext VM7348:177
what am i doing wrong?