[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

[jQuery] Selector filters don't allow descendent selection

2008-12-14 Thread Fran
I want to select all labels except those within a div of a given class, but the exclusion is ignored :/ These work fine: $("div[class='t2-display'] label").append("Only expected ones"); $("div.t2-display label").append("Only expected ones"); These don't - all labels are selected, no matter the d