Can I change the title of a tooltip without hiding it?

I want a tooltip to display time. To do this, I update it every few seconds, but every time I change the title.

$(".track a").tooltip('hide'); $(".track a").data('tooltip').options.title = time; $(".track a").tooltip('show'); 

This works, but the tooltip flickers, but without hiding it and shows that the tooltip is not updated. Is there a way to update a tooltip without hiding or showing it?

Thanks!

+4
source share
1 answer

It’s good that the problem was somewhere else.

In any case, now I use it because it changes all components that need a hint, in which the one above only changes one component.

 $(".track a").tooltip('hide') .attr('data-original-title', time) .tooltip('fixTitle') .tooltip('show'); 

You need to set the animation to false when initializing the tooltip:

 $(".track a").tooltip({ 'animation' : false }); 
+5
source

All Articles