title: jQuery return false not working
body: <p>I have a table and I iterate through each row.
  If the row background color is green and its respective checkboxes with class as linebox are not checked I am supposed to display an error message on click of submit.
  But the return false is not working and the form is getting submitted.Though the message is getting displayed.
  How do I resolve this?
  Below is the code.</p>
  
  <pre><code>jQuery(document).on('click', '#add-All-button', function () {
    $(".rowb").each(function() {                       
      if($(this).css("background-color") == "rgb(71, 163, 71)") {
        var ischk = 0;
        var row = $(this);                        
        if (row.find('input[class="linebox"]').is(':checked') ) {
          ischk++;
        }
        if(ischk==0) {
          alert('Every green colored row should have one of the checkboxes checked.');
          return false;
        }
      }                       
    });
  });
  </code></pre>