user1225730
user1225730

Reputation: 235

Popover in bootstrap doesn't work

I'm tring using bootstrap and I'm trying to implement popover effect on a link. Here is the code for the link

<a href="#" class="btn btn-danger" rel="popover" title="Title of popover" data-content="some text to display">Link popover</a>

And here is the js code that I'm using on the bottom of the page

<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>  
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/bootstrap-transition.js"></script>
<script src="js/bootstrap-tooltip.js"></script>
<script src="js/bootstrap-popover.js"></script>

Nothing happen I can just see the title in the normal tooltip window. Any idea ? Thanks

Upvotes: 1

Views: 3535

Answers (2)

anshul
anshul

Reputation: 11

Load the bootstrap docs.min.js script.

<script src="http://getbootstrap.com/assets/js/docs.min.js"></script>

I faced the same problem and for some reason the js required is written in this file.

Upvotes: 1

AlexC
AlexC

Reputation: 9661

have you added this line of code ?

$('.btn-danger').popover();

Upvotes: 4

Related Questions