What Javascript Object Am I Looking For? Click A Button-it Stays Bold Till The Next One Is Clicked?
A very basic thing, I know. I have a collapsing div help box thing that is triggered when clicking links. Click the link, the help topic opens in the div. I want the text in the
Solution 1:
Assuming all your help links have a class of "help", define a class:
a.last { font-weight: bold; }
and then:
$("a.help").click(function() {
$("a.last").removeClass("last");
$(this).addClass("last");
});
Post a Comment for "What Javascript Object Am I Looking For? Click A Button-it Stays Bold Till The Next One Is Clicked?"