PDA

View Full Version : How to change look of 'active' menu item



jkessler
08-04-2011, 03:24 PM
Hello,

I am trying to change the look of the 'active' submenu item... Meaning, when you're on a certain page - that submenu item will look different (i.e. bold, different color, etc.)...

URL is --> http://fundamentals.idc.org/oversight/oversight_portfolio

JS code I'm using -->

$("*").find("a[href='"+window.location.href+"']").each(function(){
$(this).addClass("submenuactive")
//add your own logic here if needed
})

Any help/advice would be appreciated! Thank you! :)

Jodi