title: .has() in jquery
body: <p>I'm trying to get my head around jquery .has(). I tried to use it to find a li item that has a class="a" and set its border.</p>
  
  <pre><code>&lt;script type=text/javascript&gt;
  $("document").ready( function(){
      $("li").has(".a").css("border", "3px solid red");
  });
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;ul id="list1"&gt;
      &lt;li class="a"&gt;item 1&lt;/li&gt;
      &lt;li class="a"&gt;item 2&lt;/li&gt;
      &lt;li class="b"&gt;item 3&lt;/li&gt;
      &lt;li class="b"&gt;item 4&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>