Skip to content

Instantly share code, notes, and snippets.

@brettbuddin
Created December 21, 2011 04:13
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 brettbuddin/1504539 to your computer and use it in GitHub Desktop.
Save brettbuddin/1504539 to your computer and use it in GitHub Desktop.
$('sidebar a').click(function(event) {
event.stopPropegation();
});
$('sidebar').click(function() {
alert('A child was clicked!'); // This won't fire if an anchor is clicked.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment