Skip to content

Instantly share code, notes, and snippets.

@bobthecow
Created September 8, 2011 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobthecow/1204155 to your computer and use it in GitHub Desktop.
Save bobthecow/1204155 to your computer and use it in GitHub Desktop.
$("body").bind("click", function (e) {
$('.dropdown-toggle, .menu').parent("li").removeClass("open");
});
$(".dropdown-toggle, .menu").click(function (e) {
var $li = $(this).parent("li").toggleClass('open');
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment