Created
October 15, 2016 21:33
-
-
Save et4891/bde01088fffd09ae9c1117347d137160 to your computer and use it in GitHub Desktop.
Anywhere other than the form itself is clicked, the form will hide
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 _con = $('.signUp-LogIn-form'); | |
if(!_con.is(e.target) && _con.has(e.target).length === 0){ | |
$('.signUp-LogIn-form').hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment