addClass if contains match
<p>HTML:</p>

<pre><code>&lt;li class="widgetcontainer widget_text" id="text-3"&gt;
   &lt;h3 class="widgettitle"&gt;Static Ad&lt;/h3&gt;
   &lt;div class="textwidget"&gt;&lt;img alt="" src="static/announcement.png"&gt;&lt;/div&gt;
&lt;/li&gt;
</code></pre>

<p>jQuery:</p>

<pre><code>if( $('.widget_text')[0] ) {
    $('.widgettitle').each(function() {
      if ( $(this).containts('Static Ad') ) {
        $(this).parent().addClass('myclass');
      }
    }); 
}
</code></pre>

<p>... isn't working. Neither:</p>

<pre><code>if( $('.widget_text')[0] ) {
    $('.widget_text').each(function() {
      if ( $(this).children('h3:contains:("Static Ad")') ) {
        $(this).parent().addClass('static-ad');
      }
    }); 
}
</code></pre>

<p>How do I fix?</p>

<p>Thanks!</p>
