title: jquery sort out li
body: <p>I have code</p>
  
  <pre><code>&lt;ul id="list"&gt;
   &lt;li&gt;test&lt;/li&gt;
   &lt;li class="header"&gt;test&lt;/li&gt;
   &lt;li&gt;test&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I need execute this code</p>
  
  <p>(use jquery)</p>
  
  <pre><code>var items = $("#list li");
  
  $.each(items, function (key, value) {
   if ($(value).hasClass(".header")) { 
      ... Do Something ...
      }
  }
  </code></pre>
  
  <p>this code doesn't work, because value == 'test'</p>
  
  <p><strong>Excuse, my English is awful</strong></p>