Profile
Achievement
iammikecohen's Recent Snippets
- All /
« Prev 1 Next »
JavaScript
Set links with href to current page as active (or if in subnav set their parent to active)
look through the list items in your main nav and based on href of anchor tags this will set the top level link to have an 'active' class.
0
1182
posted 13 years ago by iammikecohen