Home › Forums › CSS › Button active state when not leaving the current page? › Re: Button active state when not leaving the current page?
October 30, 2011 at 11:08 am
#89933
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.