How can I close / dismiss Bootstrap Popover when clicking the popover trigger element?
问题 jsFiddle: http://jsfiddle.net/kAYyR/ Screenshot: Here's what works: Open popover on button click Close popover on click outside popover Close popover on click of .close button BUT... I cannot get the popover to close when you click the original button again. Instead the popover flashes off and on again. Duplicate it yourself here. How can I accomplish this? HTML: <button id="popoverId" class="popoverThis btn btn-large btn-danger">Click to toggle popover</button> <div id="popoverContent" class