Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Button active state when not leaving the current page? Re: Button active state when not leaving the current page?

#89933
Arvid
Member

Sadly only with jQuery:


$(document).ready (function () {
$("yourelementhere").click (function () {
$(this).addClass("yourclass");
$("otherlinks").removeClass("theactiveclass");
});
});

I hope that might be of some help.