title: JQuery: How to check if element has only this class, and no other class?
body: <p>I'm trying to come up with a way to select Element 2.</p>
  
  <pre><code>&lt;div class="wrapper"&gt;
      &lt;div class="qe datepicker"&gt;Element 1&lt;/div&gt;
      &lt;div class="qe"&gt;Element 2&lt;/div&gt;
      &lt;div class="qe fileuploader"&gt;Element 3&lt;/div&gt;
      &lt;div class="qe fileuploader datepicker"&gt;Element 4&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Though I haven't tested this code, I can do something like this, but it's kinda stupid and I want a more generic way:</p>
  
  <pre><code>var wanted_elements = $('.wrapper').children('.qe').not('.datepicker').not('.fileuploader');
  </code></pre>
  
  <p>Any thoughts on this?  Thanks in advance!</p>