Tuesday, June 14, 2011

Jquery how to handle menu selected

1.Make a selected class in Js file Example
2.Provide the Jquery Api on top
3. Use the class on each page like this


&lt script language="javascript"&gt
$(document).ready(function(){
$(".topnav #menu li #idContactUs").attr("class","selected");
});
&lt/script&gt

No comments:

Post a Comment