[jQuery] SIMPLE (newbie) selecting TDs
Hi,
I am embarrassed to say I can't find a way to select the third cell in
each row of a table and add a class to it.
I tried this:
$('.vfOptions tr td').eq(2).addClass('status');
and it worked for the first row but not subsequent rows.
So I tried this, thinking it was the correct construct perhaps
$('.vfOptions tr td').(function() {
$(this).eq(2).addClass('status');
});
but it failed to add class to any rows at all.
I would be MOST grateful for any clues as to what I am doing wrong -
thanks in advance in deed!
Cheers, -Alan