Created
July 20, 2017 18:52
-
-
Save projoomexperts/ef7fe6522c6989e611bca4b578f585aa to your computer and use it in GitHub Desktop.
Bigcommerce left menu add active class
This file contains hidden or 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
var url = window.location.href; | |
jQuery('.Left .sf-menu li a').each(function(){ | |
var gthis = jQuery(this); | |
var furl = gthis.attr('href'); | |
if (furl == url){ | |
gthis.parent().addClass('active-ul'); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment