This is my html code:
<li class="pop" popover="popover text goes here" popover-trigger="mousedown">
<a><i class="icon-link"></i></a>
</li>
When you click on the icon, a pop-up window opens as expected. Currenly popover closes only by clicking on the icon. I want the popover to close automatically after a few seconds.
This is my javascript code - which doesn't work:
$('.pop').popover().click(function () {
setTimeout(function () {
$('.pop').popover('hide');
}, 4000);
});
at startup
$('.pop').popover()
in the FF debugger that I get:
typeError: undefined is not a function
Please, help:)
source
share