The Tooltip Plugin
The Tooltip plugin is small pop-up box that appears when the user moves the mouse pointer over an element:
How To Create a Tooltip
To create a tooltip, add the
data-toggle="tooltip"
attribute to an element.
Use the
title
attribute to specify the text that should be displayed inside the tooltip:<a href="#" data-toggle="tooltip" title="Hooray!">Hover over me</a>
<script>$(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); });</script>
No comments:
Post a Comment