Created
October 2, 2014 08:49
-
-
Save Webbist-dev/8e863425707e3ad893af to your computer and use it in GitHub Desktop.
Script to find active link from page url
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
$('.sibling-pages li a').each(function() { | |
var url = window.location.href; $(this).filter(function() { | |
return this.href == url; }).addClass('current'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment