Created
March 12, 2015 20:18
-
-
Save morningtoast/c0d91d254cb9fbfbda9c to your computer and use it in GitHub Desktop.
Click anywhere to close
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).on('click', function(event) { | |
| if (!$(event.target).closest('#element-to-exclude').length) { | |
| // hide menu code | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment