I have some issue about jQuery which I can use to highlight the menu item selected by a user I am here.
Here is my code (within the master. Master):
This works when I trace through firebug, but the class changes and then the page gets reloaded and I change the class. What am I doing wrong here?
I think that when you reload the page, the document gets reloaded and you All your lost changes I want to highlight the menu item, you must use the cookie to save the current menu item index. But I have another code in my website:
$ (". Menu li a"). Every (function () {$ (this) .removeClass (); if (document.location .href.indexOf ($ (this) .attr ("href") gt; {$ (this) .addClass ("menus active ");}});
Comments
Post a Comment