user2223088
user2223088

Reputation: 1

Twitter bootstrap 2.3.1 popover doesn't working

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

Answers (1)

isherwood
isherwood

Reputation: 61056

You're missing tooltip.js, a prerequisite for popover.js.

http://jsfiddle.net/Enw68/4/

$(document).ready(function () {
    $('#img').popover({
        trigger: "hover"
    });
});

Upvotes: 1

Related Questions