title: jquery if element contains text, add class to parent div
body: <p>I need to add a class to a parent div if one of the children elements contains the word "Sponsored."</p>
  
  <pre><code>&lt;div id="post-item"&gt;   
    &lt;span class="tags"&gt;
        &lt;a href="#"&gt;Blogs&lt;/a&gt;            
    &lt;/span&gt;         
  &lt;/div&gt;
  
  &lt;div id="post-item"&gt;   
    &lt;span class="tags"&gt;
        &lt;a href="#"&gt;Sponsored by Lorem Ipsum&lt;/a&gt;            
    &lt;/span&gt;       
  &lt;/div&gt;
  </code></pre>
  
  <p>I am currently trying to use parent().addClass but it's not working for some reason. You can see an example in this fiddle: <a href="http://jsfiddle.net/VrPdF/" rel="noreferrer">http://jsfiddle.net/VrPdF/</a></p>
  
  <pre><code>if (jQuery('a:contains("Sponsored")').length) {
      jQuery(this).parent('#post-item').addClass('sponz');
  
  }
  </code></pre>
  
  <p>Any and all help would be greatly appreciated - thanks !</p>