title: If element contains certain text
body: <pre><code>$('.test').css('background','red');
  
  &lt;div id="example"&gt;Some text&lt;/div&gt;
  </code></pre>
  
  <p>How can I <code>.addClass('test')</code> if <code>#example</code> contains the word "text"?</p>