jQuery :last-child selector
<p>How do I add class="x" to the last table cell that's on the same row as the one that has class="insert"?
Something like:</p>

<pre><code>$('td.insert').parents('tr').(':last-child').addClass('x');
</code></pre>
