Here you go, but that only make sense if you want to do something to the other tds as well other wise use the last-child method described in one of the other answers.
$('td').each(function(){
var $this = $(this);
if ($this.index() == $this.siblings().length-1)
{
alert('123');
}
})