Created
July 2, 2017 11:36
-
-
Save 0632347878/b1f8dc5ed3c3f9049f23db313e6b2db8 to your computer and use it in GitHub Desktop.
Click inside/outside
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).click(function() { | |
alert('clicked outside'); | |
}); | |
$("#cabinet_messages").click(function(event) { | |
alert('clicked inside'); | |
event.stopPropagation(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment