Skip to content

Instantly share code, notes, and snippets.

@manute
Last active December 16, 2015 12:19
Show Gist options
  • Save manute/5433788 to your computer and use it in GitHub Desktop.
Save manute/5433788 to your computer and use it in GitHub Desktop.
Simple Twitter Bootstrap Popover
<html>
<head>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"></link>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<br/>
<a href="#" id="example" class="btn large primary" >click for popover</a>
</body>
<script type="text/javascript">
$(function () {
$('#example').popover({
title: 'Test',
content: 'Hello Popover',
placement: 'bottom'
});
});
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment