You can try by checking if there are classes with ui-tooltip.
$(".ui-tooltip").length
Or, alternatively, you can use the API to check if it is open. You can set the flag and check using:
$(".selector").on("tooltipopen", function(event, ui) {
$(this).data("tooltip", true);
});
$(".selector").on("tooltipclose", function(event, ui) {
$(this).data("tooltip", false);
});
To find out the current status of the tooltip, you can use this:
$(".selector").data("tooltip");
It returns trueif it is open, and falseif it is closed. Hope this helps ...
source
share