Passing "return false" between functions in jQuery
<p>I know the title is a bad title, I don't know any way to explain this other than with an example:</p>

<pre><code>$('form').submit(function(){
  $(this).find('input').each(function(){
    if($(this).hasClass('error'))
      return false;
  });
});
</code></pre>

<p>However, the "return false" is returning the ".each()" with false. How can I "pass" it onto the ".submit()"?</p>
