title: JQuery: How to get divs by class name from HTML data without root element
body: <p>I have such html data:</p>
  
  <pre><code>&lt;div class="class1"&gt;...&lt;/div&gt;
  &lt;div class="class1 class2"&gt;...&lt;/div&gt;
  &lt;div class="class3"&gt;...&lt;/div&gt;
  ...
  &lt;div class="class1"&gt;...&lt;/div&gt;
  &lt;div class="class1 class2"&gt;...&lt;/div&gt;
  &lt;div class="class3"&gt;...&lt;/div&gt;
  </code></pre>
  
  <p>How can I get divs with class1 and then divs with class2?</p>
  
  <p>I tried such way:</p>
  
  <pre><code>var divs = $(data).find('.class1');
  </code></pre>
  
  <p>But it returned empty array.</p>
  
  <p>I tried other way:</p>
  
  <pre><code>var divs = $(data).filter('.class1');
  </code></pre>
  
  <p>But it returned array</p>
  
  <pre><code>[div.class1, div.class1, ..., div.class1]. 
  </code></pre>
  
  <p>So, I could not find divs with 'class2' in it, because 'class2' was lost... It's so strange...</p>
  
  <p>Has anybody ideas?
  Thanks!</p>