Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery tooltip not displaying

Tags:

jquery

tooltip

I'm trying to set a tooltip for some listed elements using jquery ui but I can't get the tooltips to show. I'm trying to apply a tooltip to all items using the tooltip class. Please check my code for problems...

HTML

<li>
<label>
  <input id="someid" type="radio" name="name" />
  <strong><span>text</span></strong></label>
  <a href="#" class="tooltip" title="some text"></a>
  <h4>text</h4>
</li>

JS

function showTooltip() {
$("#tooltip").each(function()
    {
        $(this).tooltip();
    };
};

Thanks :)

like image 548
Ryan Taylor Avatar asked Mar 20 '13 20:03

Ryan Taylor


1 Answers

In my case, the problem occurred because Bootstrap was also loaded on the page.

like image 178
mfort Avatar answered Oct 04 '22 23:10

mfort