title: Checking a checkbox in a list, based on the textcontent of the list item
body: <p>I've got a list that looks like this:</p>
  
  <pre><code>&lt;ul id="someList"&gt;
      &lt;li&gt;&lt;input name="myNumber" type="checkbox" value="1" /&gt; One &lt;/li&gt;
      &lt;li&gt;&lt;input name="myNumber" type="checkbox" value="2" /&gt; Two &lt;/li&gt;
      &lt;li&gt;&lt;input name="myNumber" type="checkbox" value="3" /&gt; Three &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I was trying to use jQuery to find the li that contains specific text and then check the corresponding checkbox.  Something like this:</p>
  
  <pre><code>        $("#someList").find("Two").prev("input[type=checkbox]").prop("checked", true);
  </code></pre>
  
  <p>Well I couldn't get that to work.  So after some searching, I found an example using filter() that DID work.</p>
  
  <pre><code>     $('li').filter(function(){
               var txt = this.textContent;
               return txt === 'Two';  
           }).find('input[type=checkbox]').prop('checked', true);
  </code></pre>
  
  <p>That works like a champ.  The only problem is, it seems more complicated than I expected. </p>
  
  <p>My question is fairly simple.  Is this the best way to accomplish what I'm trying to do?   </p>