Do you use <thead> and <tbody> tags? If you do and can change it, this will be a lot simpler as you would only select those in the tbody tags: tbody > tr
Otherwise, I'm not sure of a solution at this point without having to loop through its children. Maybe you can mix the :not and :has selection, but I've never tried it before. On Oct 5, 9:27 am, Bhavin <patelbhavi...@gmail.com> wrote: > Hi, > > I am trying to select the <tr> "except the <tr> - with <th>". > > As per jquery book, I tried this. > but it is not working. > > $('tr:not[th]:even').addClass('even'); > > can anybody tell me the solution ? > > Thanks, > Bhavin.