I have tried the exact same setup as yours, but it did not work.
On Aug 25, 12:14 am, James <james.gp....@gmail.com> wrote: > Have you tried something like: > > $("a.show").click(function(event){ > $(this).removeClass("show").addClass("hide"); > $("div[title!="+this.id+"][class=news]").hide(500); > $("div[title="+this.id+"][class=news]").show(500); > event.preventDefault(); > }); > > On Aug 24, 11:37 am, StefanCandan <onlyo...@live.nl> wrote: > > > Okay, so I'm working on this site, currently I have this jquery code: > > > $("a.show").click(function(event){ > > $("a.show[id="+this.id+"]").removeClass("show") > > $("a[id="+this.id+"]").addClass("hide") > > $("div[title!="+this.id+"][class=news]").hide(500) > > $("div[title="+this.id+"][class=news]").show(500) > > event.preventDefault(); > > }); > > > it doesn't seem to remove the show class, and add the hide class.