jQuery(function($) { var path = window.location.href; // because the 'href' property of the DOM element is the absolute path $('.prov_dir_menu a').each(function() { if (this.href === path) { $(this).addClass('active'); } }); });
Jagdish Sarma Asked question September 13, 2021