title: Jquery find within an array of elements
body: <p>I have selected a bunch of li elements that meet a certain criteria like so:</p>
  
  <pre><code>var x = $('li[attribute="value"]');
  </code></pre>
  
  <p>Now rather than searching the dom again, I want to search x for an li tag that has a specific id. I could use a .each to search x but was wondering if there was a one line statement I could use.</p>
  
  <p>something like this:</p>
  
  <pre><code>var myLi = x.find("[id=23]");
  </code></pre>
  
  <p>or is it faster to search the dom using the id tag. What if I wanted to search on a second attribute?</p>
  
  <p>Please advise.</p>
  
  <p>Thanks!</p>
  
  <h1>Edit</h1>
  
  <p>Please note that I want to change the properties of myLi (say make its background color red) so I need a ref to the element. thanks.</p>