Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 3 tooltips visible on page load

I'm using Bootstrap 3 tooltips, used the examples from the docs, but the problem is they show up automatically at start, when the page is loaded all the tooltips are visible!

i want them to show only on hover, what should I do?

like image 663
yazfield Avatar asked Jul 24 '14 16:07

yazfield


2 Answers

You can do like this

$(function () {
    $('[data-toggle="tooltip"]').tooltip("show");
    $('[data-toggle="tooltip"]').find(".tooltip.fade.top").removeClass("in");
 });

or

$(function () {
    $('[data-toggle="tooltip"]').tooltip("show");
    $(".tooltip.fade.top").remove();
 });

For Html :

<a href="#" data-toggle="tooltip" title="This is tooltip !">Hover over me</a>

like image 88
Pranav Labhe Avatar answered Sep 29 '22 05:09

Pranav Labhe


I think you trigger bootstrap tooltip in document ready like this,

$('#id').tooltip('show');

Try to change like this

$('#id').tooltip();

Hope this will work

like image 27
Arun_SE Avatar answered Sep 29 '22 07:09

Arun_SE