The following code shows how to mark popover content.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'
src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css">
<script type='text/javascript'>
$(function(){<!--from w w w . j a v a2 s. c o m-->
$(function(){
$('#trigger').popover({
html: true,
content: function() {
return $('#popover-content');
}
});
$('#link').click(function() {
console.log('beep');
});
});
});
</script>
</head>
<body>
<div id="popover-content">
<a id="link" href="#">click</a>
</div>
<button id="trigger" data-placement="bottom" title="title">Reveal
popover</button>
</body>
</html>