Answers

Question and Answer:

  Home  Bootstrap

⟩ Please consider the HTML code snippet below. <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="My Title">Hover over me</button> What is missing for a tooltip to show properly?

Bootstrap’s Tooltip plugin is not CSS-only, like other plugins are. For performance reasons, the Tooltip plugin is opt-in, and to use it you must initialize it using JavaScript with the following example code:

$(function () {

$('[data-toggle="tooltip"]').tooltip();

});

 187 views

More Questions for you: