title: Bootstrap JS validator and form submit
body: <p>I am using this Bootstrap validator <strong>github.com/1000hz/bootstrap-validator</strong> for my bootstrap forms but it appears there is no way to set some external JS conditional before submitting forms.</p>
  
  <p>For example, I would like to do the following from an external JS files:</p>
  
  <p>1 # if form or some input of the form is invalid using validator() then I do some action.</p>
  
  <p>2 # else Users will see some bootstrap button loading message until everything is submitted into the databases.    </p>
  
  <p>You can have a single case here:</p>
  
  <pre><code>$('button[data-loading-text]').click(function () {
      var btn = $(this);
      btn.button('loading');
      $.blockUI();
  
   // #1 if form is invalid using validator() then I unblock the please wait message $.unblockUI(); and reset the bootstrap loading button.
   // #2 else users will still see the "please wait" message + bootsrap loading button untill everything is submitted into the databases.
  });        
  </code></pre>
  
  <p><a href="http://jsfiddle.net/temgo/k07nx06k/12/" rel="nofollow">http://jsfiddle.net/temgo/k07nx06k/12/</a>        </p>
  
  <p>Any help will be appreciated as it appears the plugin events are only set for specific field not for full form validation.</p>
  
  <p>Regards</p>