title: jQuery Check if multiple elements have a class
body: <p>I need to run a function inside a conditional statement based on whether or not 3 elements have a class.</p>
  
  <p>In short, if (elm1, elm2, elm3) have the class "include" then ring true. But all 3 elements must have the class, it can not ring true if only 2 or 1 has the class. </p>
  
  <pre><code>&lt;div class="elm1" class="include"&gt;&lt;/div&gt;
  &lt;div class="elm2" class="include"&gt;&lt;/div&gt;
  &lt;div class="elm3" class="include"&gt;&lt;/div&gt;
  
  jQuery('#search-submit').click(function() { 
      if (#elm1, #elm2, #elm3).hasClass('include'){
          /* return true */
      } else {
          /* return false */
      }
  }
  </code></pre>
  
  <p>Needless to say this doesn't work.</p>