Created
February 12, 2013 16:47
-
-
Save GuyHarwood/4771250 to your computer and use it in GitHub Desktop.
When using Bootstrap tabs in ASP.Net MVC, this allows you to find the anchor tag with the href that matches the current page via Request.RawUrl
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
$('a[href$="@Request.RawUrl.Replace("/",@"\/")"]').parent().addClass('active'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment