somehow i created one example for my need. i used this code:
$('.btn').popover();
$('.btn').on('click', function (e) {
$('.btn').not(this).popover('hide');
});
check the demo here
and corrected the previous demo
i hope it will help someone else