Return to Snippet

Revision: 30196
at August 10, 2010 00:24 by damanlovett


Initial Code
	// Side Navigation Select
	
		$('a').addClass(function() {
			if ($(this).attr('class')==$('body').attr('id')) {
				return 'active';
			}
		});
		
// NOTE:  
//		add id that is the name of the page to body tag i.e. <body id="home">
//		create active css with styles active {text-decoration: underline;}

Initial URL

                                

Initial Description

                                

Initial Title
Page Navigation Notification

Initial Tags
jquery

Initial Language
JavaScript