Reputation: 1
I don't know what to do I have spend about 40 minutes for adding popover to image and without results, I have working popover on another project, I copied all from that project, but still doesn't working :( On older project I use 2.3.0 boostrap on this newer I use 2.3.1 and can't add popover :@ there is my code:
<img id="img" src="http://has.lv/uploads/profile/photo-178.jpg" data-toggle="popover" data-content="Test" data-placement="top" data-original-title="Title" />
<script type="test/javascript">
$(document).ready(function(){
$('#img').popover({ trigger: "hover" });
});
</script>
and the fiddle: http://jsfiddle.net/Enw68/
and yes I have added jquery and boostrap js files!
Upvotes: 0
Views: 1550
Reputation: 61056
You're missing tooltip.js, a prerequisite for popover.js.
$(document).ready(function () {
$('#img').popover({
trigger: "hover"
});
});
Upvotes: 1