Create a gist now

Instantly share code, notes, and snippets.

Embed
menu-active > li addClass
li.current_page_item
--------------------------
$(".header-menu li a").each(function () {
if ($(this).attr("href") == pgurl || $(this).attr("href") == pgurl + '.html') {
$(this).parent().addClass("current_page_item");
$(this).parents('li').addClass("current_page_item");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment