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 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 I *do* want my function to apply.

Oh well, worth a try ;)

F

Reply via email to