Created
August 27, 2014 13:07
-
-
Save Rayjax/c22481da2751ee653642 to your computer and use it in GitHub Desktop.
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 (e) | |
{ | |
var div = $("tadiv"); | |
if (!div.is(e.target) // ignorer ta div | |
&& div.has(e.target).length === 0) // ignorer ses contenus | |
{ | |
alert("click en dehors effectue") | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment