[jQuery] How to make it remove class show, and add class hide.
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.