Created
June 4, 2012 11:23
-
-
Save alixcan/2867820 to your computer and use it in GitHub Desktop.
Jquery Aktif Link Class Atamak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var pathname = (window.location.pathname.match(/[^\/]+$/)[0]); | |
$(".nav li a").removeClass("active"); | |
$(".nav li").addClass("active"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment