Return to Snippet

Revision: 46994
at May 29, 2011 05:01 by pflangan


Initial Code
var path = location.pathname.substring(1);
    if ( path )
    	$('#menu a[href$="' + path + '"]').attr('class', 'selected');

Initial URL


Initial Description


Initial Title
highlight current page link in navigation item css jquery

Initial Tags
css, jquery

Initial Language
JavaScript