[jQuery] Re: Problem in [] filter

2008-01-28 Thread Sean Catchpole
You could try $('tr:has(td):even') [hasElement] support was removed in ~v1.2(perhaps earlier) in favor of :has(element) ~Sean

[jQuery] Re: Problem in [] filter

2008-01-28 Thread Bohdan Ganicky
Hi, try this: $('tr:not(:has(th)):even') ... ...or consider using thead and tbody elements in your markup to separate table-header from the data rows :) -- Bohdan matifibrahim wrote: // $(document).ready(function() { $('th').parent().addClass('table-heading');