Ok I guess I've misunderstood how el.getParent() actually works. I thought it 
only found the immediate parent (with optional selector). Welp thanks for 
clarifying. This should work as needed...

Happy coding. 

~Philip

Sent from my iPhone

On Jan 9, 2011, at 2:10 AM, אריה גלזר <[email protected]> wrote:

> On Sun, Jan 9, 2011 at 8:33 AM, Philip Thompson <[email protected]> 
> wrote:
> This won't work. I'm not just looking for the immediate parent - I'm looking 
> for any parent/grandparent/great grandparent/etc that may have that class. 
> 
> 1st of all, sanfords concept will work perfectly fine for this use case
> 2nd -why not do el.getParent('.foo')?
> 
> -- 
> Arieh Glazer
> אריה גלזר
> 052-5348-561
> http://www.arieh.co.il
> http://www.link-wd.co.il
> 

Reply via email to