Mark popover content
Description
The following code shows how to mark popover content.
Example
<!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 www . j a v a 2 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>