title: JQuery .addclass to table <tr> element where text is found
body: <p>I am theming some report tables and do not have access to the templates.  </p>
  
  <p>I have this code so far which ends up adding "my-class" to every TR element in the report table.  However, I only want to add the class to the table row TR where the text was found. I am thinking I need a little more code to do this. Here are a few things I have tried so far:</p>
  
  <pre><code>if ($('#report-area table tr:contains("Name")', this).length &gt; 0) {
  $("#reportArea table tr", this).addClass("my-class");
  }
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>if ($('#report-area table tr:contains("Name")', this).length &gt; 0) {
  $(this).addClass("my-class");
  }
  </code></pre>
  
  <p>... but that did not work either. </p>