title: how to submit form if has no errors?
body: <p>How to submit form after validation if has no errors? i tried return false, but form not submitted. What is the best solution to do that? </p>
  
  <p>here is my code:</p>
  
  <pre><code>jQuery(function($) {
      $('[data-numeric]').payment('restrictNumeric');
      $('.cc-number').payment('formatCardNumber');
      $('.cc-exp').payment('formatCardExpiry');
      $('.cc-cvc').payment('formatCardCVC');
  
      $.fn.toggleInputError = function(erred) {
          this.parent('.form-group').toggleClass('has-error', erred);
          return this;
      };
  
      $('#payment-form').submit(function(e) {
          e.preventDefault();
  
          var cardType = $.payment.cardType($('.cc-number').val());
          $('.cc-number').toggleInputError(!$.payment.validateCardNumber($('.cc-number').val()));
          $('.cc-exp').toggleInputError(!$.payment.validateCardExpiry($('.cc-exp').payment('cardExpiryVal')));
          $('.cc-cvc').toggleInputError(!$.payment.validateCardCVC($('.cc-cvc').val(), cardType));
          $('.cc-brand').text(cardType);
  
          if (!$('.form-group').hasClass('has-error')) {
              return false;
          }
      });
  });
  </code></pre>