title: Do this if all checkboxes are checked or this if not (jQuery)
body: <p>i'm trying to do following:</p>
  
  <ul>
  <li>user can continue to next step only if all checkboxes are checked</li>
  <li>in other case if user click on button, it should popup alert message for example</li>
  </ul>
  
  <p>I can't figure out the second part if checkboxes are not all checked. Here is my code:</p>
  
  <pre><code>$("input[type='checkbox'].checkbox").change(function(){
      var a = $("input[type='checkbox'].checkbox");
      if (a.length == a.filter(":checked").length){
          $('.button').on('click',function(){
              // do something, no issue here
          });
      } else {
          // do something else, can't figure this out
      }
  });
  </code></pre>