You have to render both the jQuery and Bootstrap bundles in your layout view. If you don't have a Bootstrap bundle, you just need Bootstrap.js. Also ensure Bootstrap.css is in your CSS bundle.
This markup will render a button that will produce the popover widget when clicked.
<button type="button" id="Example" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-content="Phone: 555-5555"> Popover on top </button>
Then, add a jQuery file with the following:
$(document).ready(function () { $("#Example").popover(); });
No comments:
Post a Comment