Using jQuery, what selector do I use to get the last thead tr for each matching table?
<p>On a single page, I have two tables. Each of them has a class of "data". Each of them has theads.</p>

<p>I want to apply formatting to the last row in <em>each</em> of the table's theads.</p>

<p>I originally had this:</p>

<pre><code>$('table.data thead tr:last').children().addClass('col');
</code></pre>

<p>Which works fine if there is only one table on the page. But if there are multiple tables, that tr:last selector picks up the last tr for ALL of the tables matching the class, not EACH table.</p>

<p>How do I constrain this to operate on the last tr for each thead?</p>

<p>Thanks!</p>
