Quantcast
Viewing latest article 1
Browse Latest Browse All 6

Answer by Shashikala for Bootstrap Popover on Image

Put attributes in jquery variable instead of tag

<img class="icon" rel="popover" src="images/brandable.png"/>

Add script as following

<script>
$('document').ready(function() {
    var popOverSettings = {
        placement: 'top',
        selector: '.icon',
        title:'Brandable',
        trigger: "hover",
        content:'This is a popover'
    };
$(this).popover(popOverSettings);
});
</script>

Viewing latest article 1
Browse Latest Browse All 6

Trending Articles