Skip to content

Instantly share code, notes, and snippets.

@psynewave
Last active January 17, 2022 10:09
Show Gist options
  • Save psynewave/9064891 to your computer and use it in GitHub Desktop.
Save psynewave/9064891 to your computer and use it in GitHub Desktop.
$(id).on('mouseenter', function () {
var $this = this;
$($this).tooltip("show");
$(".tooltip").on("mouseleave", function () {
$($this).tooltip('hide');
});
}).on("mouseleave", function () {
var $this = this,
timeout = setInterval(function () {
if (!$(".tooltip:hover").length) {
$($this).tooltip('hide');
clearInterval(timeout);
}
}, 100);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment