title: jQuery - contents equal to rather than contents contains
body: <p>Given the following html...</p>
  
  <pre><code>&lt;div id="group"&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;div class="category"&gt;one&lt;/div&gt;&lt;/li&gt;
          &lt;li&gt;&lt;div class="category"&gt;one&lt;/div&gt;&lt;/li&gt;
          &lt;li&gt;&lt;div class="category"&gt;onetwo&lt;/div&gt;&lt;/li&gt;
          &lt;li&gt;&lt;div class="category"&gt;two&lt;/div&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>...I'm trying to figure out how to make a selector in jQuery that will select all <code>'#group ul li'</code> elements that have a child <code>'.category'</code> with innerHTML equal to some string (eg. "one"). For example, given the string "one", this selector would return the first two li's.</p>
  
  <p>Here's what I have so far:</p>
  
  <p><code>$('#group ul li')</code> will select all of the li's. Then I need to filter:<br>
  <code>$('#group ul li').filter(".category:contains('one')")</code> will select all of these li's such that they have a child with class category that contains the string 'one'. However, is there any way to check that this is <strong><em>equal</em></strong> to one?</p>
  
  <p>I'm thinking maybe just write my own function that does the equality check and pass that to filter?</p>