What are you trying to select (html)? You're asking for all *odd* td's that are children of the rows. Indexes in JS start at 0, so the first element is odd. Maybe what you want is this:
$('#tab1 tr:gt(0)>td:nth-child(2n)') or $('#tab1 tr:gt(0)>td:even') If you actually want the odd ones except the first, use :odd:gt(0) or :odd:not(:first-child) cheers, - ricardo On Feb 26, 6:13 am, ggerri <a...@ggerri.com> wrote: > Hi guys > > this drives me crazy. > > why does this also select the first td in each a row? > > $('#tab1 tr:gt(0)>td').filter(':nth-child(2n+1)') > > Please give me a hint :-) > > Thanks a lot > Gerald