Skip to content

Instantly share code, notes, and snippets.

@barlas

barlas/ready

Created Apr 24, 2015
Embed
What would you like to do?
jQuery - Close tooltip with a click apart from tooltip wrapper.
$(document).click(function(e) {
if( !$(e.target).closest('.tooltip-wrapper').length ) {
if( $('.tooltip').hasClass('active') ) {
$('.tooltip').hide();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.