Bootstrap Validation
<p>I'm using <a href="http://reactiveraven.github.io/jqBootstrapValidation/" rel="nofollow">http://reactiveraven.github.io/jqBootstrapValidation/</a></p>

<p>I want to submit the form via ajax if there are no errors.</p>

<p>nothing I try seems to work</p>

<p>Check for errors </p>

<pre><code>$(document).ready(function() {
$("#edit_profile input").jqBootstrapValidation({
submitSuccess: function($form, event) { 
event.preventDefault();
}
});

});
</code></pre>

<p>I've tried </p>

<pre><code>$(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();
     }
 });

});
</code></pre>

<h1>send .click submits the ajax form. The form still submits even when there are errors</h1>
