Skip to content

Instantly share code, notes, and snippets.

View adrianaguirre's full-sized avatar

ionoarmandino adrianaguirre

View GitHub Profile
@claygorman
claygorman / mark_li_active.js
Created August 25, 2014 17:50
Marking the parent LI active if URL matches HREF
var url = window.location.toString();
$('.navigation li a').each(function(){
var myHref= $(this).attr('href');
if( url == myHref) {
$(this).closest("li").addClass("active");
}
});