[jQuery] Re: Arbitrary Number of Parents
Kim, I think you are right. $(this).parents("div.foo") should work. The following might also work: $("../div.foo",this) But I haven't had time to punch that in myself yet. ~Sean
[jQuery] Re: Arbitrary Number of Parents
If I'm understanding correctly, then you can do $(this).parents("div.foo") (where "this" can be substituted, of course, with whatever the "context" is) :) .parent (singular) will get THE parent, while parents will keep searching up (I think?). Someone correct me if I'm wrong -- I'm still dece