 <p>You need to add the context of the td, you're already in a for loop so the 'this' variable can be used. In this context 'this' is equal to the tr you're currently iterating on.</p> <pre><code>$('tr').each(function(index) { $("td:last",this).css({backgroundColor: 'yellow', fontWeight: 'bolder'}); }); </code></pre>