title: jQuery hasClass() - check for more than one class
body: <p>With:</p>
  
  <pre class="lang-javascript prettyprint-override"><code>if(element.hasClass("class"))
  </code></pre>
  
  <p>I can check for one class, but is there an easy way to check whether "element" has any of many classes?</p>
  
  <p>I am using:</p>
  
  <pre class="lang-javascript prettyprint-override"><code>if(element.hasClass("class") || element.hasClass("class") ... )
  </code></pre>
  
  <p>Which isn't too bad, but I am thinking of something like:</p>
  
  <pre class="lang-javascript prettyprint-override"><code>if(element.hasClass("class", "class2")
  </code></pre>
  
  <p>Which unfortunately doesn't work.</p>
  
  <p>Is there something like that?</p>