If a <td> contains "a" then make the <tr> background red but the each() is to slow
<p>How do you write this so it runs faster. It looks like because I'm using an each() it is slowing it down.  </p>

<p>Can I use filter()?</p>

<pre><code> $("#X tr").each(function () {       
     if ($(this).find("table td:eq(1)").text() == "a") {
         $(this).css("background":"red");    
  }

});   

     &lt;table id = "X"&gt;
        &lt;tr &gt;
        &lt;td&gt;a&lt;/td&gt;
        &lt;td&gt;b&lt;/td&gt;
        &lt;td&gt;c&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr &gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;/tr&gt;
        ...
        &lt;tr &gt;
        &lt;td&gt;a&lt;/td&gt;
        &lt;td&gt;b&lt;/td&gt;
        &lt;td&gt;c&lt;/td&gt;
        &lt;/tr&gt;
   &lt;/table&gt;
</code></pre>

<p>thanks</p>
