title: cancel a submit in jquery?
body: <p>im doing a form validation and I want to validate the input fields when "on submit" if error Im using jquery.scrollTo to go to error:</p>
  
  <pre><code>$('#form_inscripcion').submit(function() {
      //se traen todos los inputs del formulario
      var $inputs = $('#form_inscripcion :input');
  
      $inputs.each(function() {
          var encontro_error = validar($(this)); //uses dependence ok
          if (encontro_error){
              $.scrollTo( 'input#'+$(this).attr('id'), 800 ); //go to error
              return false; // dont submit!... but seems not enter here :(
          }
      });
  
  });
  </code></pre>
  
  <p>The problem is, when error returned doesnt cancel the submit, doesnt run <code>return false;</code> line.</p>
  
  <p>It works OK when </p>
  
  <pre><code>&lt;form id="form_inscripcion" name="form" method="post" action="some" onsubmit="return false"&gt;
  </code></pre>
  
  <p>But so, will never submits. I hope you understand me :) thanks :)</p>