jQuery active nav toggle

Automaticaly toggle an "active" class on navigation elements

Source code on GitHub

Features

Basic class toggling

By default, this plugin applies 'active' class to the last clicked 'li' element:
 $('ul').activeNavToggler(); 

Boostrap compliant by default

Customizable

You can specify the child element selector and the class to be applied.

  $(".parent").activeNavToggler({
    childSelector: '.child',
    activeClass: 'foobar'
  });
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6