我正在使用http://reactiveraven.github.io/jqBootstrapValidation/
如果没有错误,我想通过 ajax 提交表单。
我尝试的任何方法似乎都不起作用
检查错误
$(document).ready(function() {
$("#edit_profile input").jqBootstrapValidation({
submitSuccess: function($form, event) { 
event.preventDefault();
}
});
});
我试过了
$(function() {
  $('form[id="edit_profile"]').find('input,select,textarea').not('[type=submit]').jqBootstrapValidation({
 preventSubmit: false,
 submitSuccess: function (form, event) {
     event.preventDefault();
     $('#send').click();
 },
 submitError: function (form, event, errors) {
     event.preventDefault();
     }
 });
});