I'm no jquery expert, but something like this might work
$('a').each(function(){
        if(this.parent() != $('#x'))
        {
                this.click(function(){
                        //do stuff here
                        });
        });
I haven't tested this but it may do the trick

Reply via email to