[jQuery] Re: Selector filters don't allow descendent selection

2008-12-14 Thread Karl Swedberg
You could try doing it this way: $('label').filter(function() { return !$(this).parents('div.t2-display').length; }) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 14, 2008, at 2:58 PM, Fran wrote: I was given some very useful guidance

[jQuery] Re: Selector filters don't allow descendent selection

2008-12-14 Thread Fran
I was given some very useful guidance on #jquery (thanks!) The problem is due to the fact that the 't2-display' DIV is nested inside others. Since the nesting is arbitrary across my application (both in terms of levels & classes) I'll have to take the opposite approach & label up the DIVs to which