Created
October 18, 2018 08:53
-
-
Save Fenil265/3628bfaae706bcfdda5722edbdf36f42 to your computer and use it in GitHub Desktop.
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
$(selector).popover({ trigger: "manual" , html: false, animation:true}) | |
.on("mouseenter", function () { | |
var _this = this; | |
$(this).popover("show"); | |
$(".popover").on("mouseleave", function () { | |
$(_this).popover('hide'); | |
}); | |
}).on("mouseleave", function () { | |
var _this = this; | |
setTimeout(function () { | |
if (!$(".popover:hover").length) { | |
$(_this).popover("hide"); | |
} | |
}, 300); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment