Current page highlighting in menu in aspx

thorcecycle

New Member
I want to highlight the current page. tried this code but is not working.. any help would be thankful and appreciated..\[code\]$(function() { $("#site-menu li a").click(function() { $(".current").removeClass("current"); //"this" is the element clicked on $(this).addClass("current"); });});?\[/code\]\[code\]<div id="menu"> <ul id="site-menu"> <li><a href="http://stackoverflow.com/questions/12716410/Home_Page.aspx">home</a></li> <li><a href="http://stackoverflow.com/questions/12716410/Services.aspx">services</a></li> <li><a href="http://stackoverflow.com/questions/12716410/About_Us.aspx">about us</a></li> <li><a href="http://stackoverflow.com/questions/12716410/Contact_Us.aspx">contact us</a></li> </ul></div>\[/code\]
 
Back
Top