nowadays i m making one mvc project and i use master page i wanna make menu with items have active preferences i used $(document).ready(function() { //document
$('#tabMenu > li').click(function() { //clik
if (!$(this).hasClass('active')) { //if
$('#tabMenu > li').removeClass('active');
/
$(this).addClass('active');
} //endif
} //click
); } //document ); and html menus/* /*ul id="tabMenu"> <%= Html.ActionLink("Home", "Index", "Home")%> <%= Html.ActionLink("About", "About", "Home")%>
</ul>*/
it is working but just 1 second becoz master page load its menu and so how can i solve this problem?