valentincognito
1/20/2017 - 12:58 AM

Add Active Class based on Url

Add Active Class based on Url

$(function() {
  $('.account-side-pannel-menu a[href^="http://'+ location.hostname +'/account/' + location.pathname.split("/")[2] + '"]').parent().addClass('active');
});