Bootstrap 3 Template
This is a simple Twitter Bootstrap 3 template. You can fork it to get a ready to use Bootstrap 3 fiddle.
HTML
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<p>
Tooltip
</p>
<a href="#" data-toggle="tooltip" title="<span class='a'>2</span> x <span class='b'>5</span>">
Hover Me
</a>
<button class="update">Update Tooltip</button>
CSS
/* Latest compiled and minified CSS included as External Resource*/
/* Optional theme */
@import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css');
body {
margin: 10px;
}
JavaScript
$(function() {
$('[data-toggle="tooltip"]').tooltip({
html: true
});
$('body').on('click', '.update', function() {
$('.a').text(10);
$('.b').text(20);
});
});