私が理解している限り、jqBootstrapValidation は次のように html5 要素を自動的に検証する必要があります。
<input type="number" class="form-control" name="ordPrice" placeholder="Price" data-validation-number-message="Not a number">
しかし、そうではありません。ここに私のjsバインドがあります:
$('#create_form').find('input,select,textarea').not('[†ype="submit"], [type="file"]').jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
console.log('error!');
},
submitSuccess: function($form, event) {
console.log('success!');
event.preventDefault();
},
filter: function() {
return $(this).is(':visible');
}
});
ここで非常に初歩的なことが欠けていますか?