jQuery: Select elements that match all of the following classes?
<p>I want to select elements that match multiple classes where the classes could be in any order.</p>

<p>I've tried using the <strong>.not()</strong> selector, but it picks all elements that matches <strong>any</strong> of the multiple classes.</p>

<p>What I'm looking for is something so it needs to have <strong>all</strong> of the multiple classes.</p>

<p>Basically <strong>.hasClass()</strong> but for multiple classes and with a return the elements that fits the match.</p>

<p>I've already tried this:</p>

<pre><code>$(".Class1.Class2")
</code></pre>

<p>The problem with that is that is has to be in a certain order which won't work. I need it to work so the classes could be in any order. The element just need to have them, all of them.</p>

<p>Thank you!</p>
