Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Find a link in an unordered list (such as a menu) and apply
- * a CSS class (.active) to highlight the active item.
- */
- jQuery('li:has(a[href="'+window.location+'"])').addClass('active');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement