When I am dynamically removing an element that has a bootstrap tooltip and the cursor is still hover, The tooltip stay on screen even if we move the cursor.
I tried to hide the tooltips before I remove the element, but it seems that it doesn't work.
function hidelm(){
$("#nav").html("");
}
$('[data-toggle="tooltip"]').tooltip();
setTimeout(function(){hidelm();},5000);
<div id="nav">
<div data-toggle="tooltip">some content</div>
</div>
In my case I want to keep default behavior. So I write a function to remove dead tooltips.
In your html: