Bootstrap Popover

 

popover is a box which appears on clicking the element.it is used to display more amount of content then a tooltip.

 
 
 
<!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="row col-md-offset-2">When you click on any button , you will see a different popover in different direction according to instructions.</div> <br /> <div class="row col-md-offset-2"> <button type="button" class="btn btn-primary" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Popover on left."> Popover on left </button> <button type="button" class="btn btn-info" data-container="body" data-toggle="popover" data-placement="top" data-content="Popover on top."> Popover on top </button> <button type="button" class="btn btn-success" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Popover on bottom."> Popover on bottom </button> <button type="button" class="btn btn-danger" data-container="body" data-toggle="popover" data-placement="right" data-content="Popover on right."> Popover on right </button> </div> </body> </html> <script type="text/javascript"> $(function () { $('[data-toggle="popover"]').popover(); }); </script>
Output