> is there a way to recursively roll out until you reach a parent
> that matches a given id?

Here's the way to do it:

$("clickedElement").click(function(){
    this.parent("#idOfWantedParent").doSomethingWithIt();
});

I think it should work this way, if not try to experiment with this or
$(this)...

Reply via email to