title: Jquery: How to break out of each() and the function it's inside in?
body: <pre><code>$("#savebtn").click(function() {
  
      $('.mytable tr').each(function(){
        if($('.mytable tr').length &lt; 1){
            alert("Nothing in the table!")
            return 
        }
      });
  alert("You are still inside the click function")
  });
  </code></pre>
  
  <p>Just having a bit of trouble with this one.  I want to exit the jquery each loop AND click function altogether. But 'return' just takes me out of the each loop only. How do I completely exit the click function altogether?</p>