Jquery Parent Item of Div containing X content
<p>I need to add a CSS class to the TR (or multiple TR's) of the parent of a TD containing some specific text. </p>

<p>Because of the CMS I can't control the code, but I can add some Jquery and CSS.</p>

<p>I've tried a few things, but I've had no luck.</p>

<p>Here is an example of what I had in mind.</p>

<pre><code>&lt;style&gt;
  tr.highlight { background: Blue;}
&lt;/style&gt;

&lt;table&gt;
  &lt;tr&gt;
    &lt;td&gt;
      Pet
    &lt;/td&gt;
    &lt;td&gt;
     Number of Legs
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
      Cat
    &lt;/td&gt;
    &lt;td&gt;
      4
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
      Doggie
    &lt;/td&gt;
    &lt;td&gt;
      4
    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>And I essentially want the jquery to add that class (highlight) to the offending TR.</p>

<p>** I know this is not an ideal approach, but desperate times call for desperate measures. **</p>

<p>Thanks for your help.</p>
