title: JQuery return only values that contain a specific string
body: <p>Learning jQuery and need some help. </p>
  
  <p>I have some simple image and text boxes. In the box (.box) is a text field (.category) that contains a letter, either D, L, or C.</p>
  
  <p>I want to return only those boxes that contain the letter D.</p>
  
  <p>This code outputs all the box values (D, D, D, L, L, C). </p>
  
  <pre><code>jQuery(document).ready(function($){
      var boxValue = $('.box').find('.category').text();
      if($("boxValue:contains('D')")){
          console.log(boxValue);
      }
  });
  </code></pre>
  
  <p>Why does it return all of them?
  How do I get it to return only those with the letter 'D'?</p>