Make sure jQuery and Bootstrap's Tootip and Popover plugins are included: http://getbootstrap.com/javascript/ http://getbootstrap.com/customize/
Then add the following...
This script opens the popover when the trigger link is clicked and adds a "X" close button to the top of the popover. The popover can be closed by clicking the trigger link again or the close button. Multiple popovers can be open at the same time. Closing a popover only closes that popover and not the others.
jQuery(document).ready(function($) {
$('.popover-link').each(function() {
$(this).popover({
html: true,
trigger: 'manual'
}).click(function(e) {
$(this).popover('toggle');
$('.close').remove();
$('.popover-title').append('<button type="button" class="close">×</button>');
$('.close').click(function(e){
$(this).parents('.popover').remove();
});
});
});
});
Pretty straightforward...see Bootstrap docs for more info: http://getbootstrap.com/javascript/#popovers
<div class="popover-container clearfix">
<div id="popover1">
<a class="popover-link" rel='popover' data-placement='top' data-original-title='Title goes here' data-content='<p>Here is some content in paragraph tags.</p>'></a>
</div>
<div id="popover2">
<a class="popover-link" rel='popover' data-placement='right' data-original-title='Another title here' data-content='<b>Here is some bold text</b> in a popover.</p>'></a>
</div>
<div id="popover3">
<a class="popover-link" rel='popover' data-placement='bottom' data-original-title='Yet another title here' data-content='<a> href="#" Here is a link</a> in a popover.'></a>
</div>
</div>