- Customize popover of twitter Bootstrap. with
$("td").popover({
template:'<div class="popover"><div class="popover-inner"><h2 class="popover-title"></h2><div class="popover-content"><div></div></div></div></div>'});
- Allow HTML code;
$("td").popover({
html:true});
<script type="text/javascript">
$(document).ready(function () {
$("td").popover({
html:true,
placement:"top",
offset:5,
delay:{ show:500, hide:100 },
template:'<div class="popover"><div class="popover-inner"><h2 class="popover-title"></h2><div class="popover-content"><div></div></div></div></div>',
title:function () {
return $(this).html();
},
content:function () {
var which = $(this).html();
return '<p>' + which + '</p><img src="https://www.google.com/images/nav_logo102.png">';
}
});
})
</script>