Last active
September 23, 2019 14:14
-
-
Save atomrli/f5a938c31a170fb38bd3637be60244b7 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).mouseup(function (e){ | |
| var checkboxContainer = $('.popup.show .popup-container'); | |
| if (!checkboxContainer.is(e.target) | |
| && checkboxContainer.has(e.target).length === 0) { | |
| $('.popup').removeClass('show'); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment