Hi, Although I figured out the part to add/remove class to an element:
$("li.x").click(function(){ var $this = $(this); if( $this.is('.xshown') ) { $this.removeClass('xshown'); $this.addClass('xhidden'); } else { $this.removeClass('xhidden'); $this.addClass('xshown'); } return false; }); ...now I just need to know how I can remove the class from say x click on y or z instead of having to click again on x to remove the class? Many Thanks.