JSFiddle - React, Tailwind, and code Playground
by moalla
HTML
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<ul>
<li> <a href="#" class="btn" data-toggle="popover" data-placement="bottom" title="">Popover</a>
</li>
<li> <a href="#" class="btn" data-toggle="popover" data-placement="bottom" title="">Popover</a>
</li>
</ul>
CSS
body {
padding: 50px;
}
li{
display:inline;
}
JavaScript
$(document).ready(function(){
var mycontent = '<div class="btn-group"> <button class="btn">Left</button> <button class="btn">Middle</button> <button class="btn">Right</button> </div>'
$('.btn').popover({
content:mycontent,
trigger: 'manual'
}).click(function(e) {
$(this).popover('toggle');
e.stopPropagation();
});
$('.btn').on('click', function (e) {
$('.btn').not(this).popover('hide');
});
});