title: jquery: How to check if a keyword exists in a div?
body: <p>How can I check f a keyword exists in a div? </p>
  
  <p>for instance, this is my html,</p>
  
  <pre><code>&lt;div class="item"&gt;
  &lt;div class="title"&gt;How to check if a keyword exists&lt;/div&gt;
  &lt;div class="author"&gt;John J, 1990&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried with this method below but obviously doesn't work!</p>
  
  <pre><code>if ($('.item .author').text('John J').length &gt; 0)
  {
      alert('found John J');
  
  }
  </code></pre>
  
  <p>any ideas? thanks.</p>