The Popover Plugin
The Popover plugin is similar to tooltips; it is a pop-up box that appears when the user clicks on an element. The difference is that the popover can contain much more content.
How To Create a Popover
To create a popover, add the
data-toggle="popover"
attribute to an element.
Use the
title
attribute to specify the header text of the popover, and use the data-content
attribute to specify the text that should be displayed inside the popover's body:<a href="#" data-toggle="popover" title="Popover Header" data-content="Some content inside the popover">Toggle popover</a>
<script>$(document).ready(function(){ $('[data-toggle="popover"]').popover(); });</script>
No comments:
Post a Comment