Created
December 30, 2016 09:02
-
-
Save lasida/1c7b7c8cd72b4ae5e48a57983e167ffb to your computer and use it in GitHub Desktop.
Code Javascript to Click All Element Except The Element ( Auto Close Element )
This file contains 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).mousedown(function(e) { | |
if (!$(e.target).is('.cart-counter,.cart-holders div,.cart-holders ul,.cart-holders li, .cart-holders p,.cart-holders span,.cart-holders a')) { | |
$('div.cart-holders').fadeOut(); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment