i have several buttons and i need a popover for each. i want it like this: when my user click on one of them, i want others to be hidden. so only one popover is show
This is the simplest and elegant way to do this:
$('[data-toggle="popover"]').on('click', function(){ $('[data-toggle="popover"]').not(this).popover('hide'); });