Bootstrap Tutorial - Show popover for an anchor








The following code shows how to show popover for an anchor.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.10.1.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script type='text/javascript'>//<![CDATA[ 
$(function() {<!--  w w w  .ja  v  a  2s.c  o m-->
    $('#tip').popover('show');
});    
</script>
</head>
<body>
  <a href="#" id="tip" data-toggle="popover" data-placement="right"
    title="first tooltip">hover over me</a>
</body>
</html>

Click to view the demo