[b][url=#]Popover Example[/url]
[url=#]Popover Example[/url]
This is the heading for #1
This is the heading for #2
This is the body for #2
With html[/b] content
< /code>
js: < /p>
$(function(){
$("[data-toggle=popover]").popover({
html : true,
content: function() {
var content = $(this).attr("data-popover-content");
return $(content).children(".popover-body").html();
},
title: function() {
var title = $(this).attr("data-popover-content");
return $(title).children(".popover-heading").html();
}
});
});
< /code>
Попвер: < /p>
< /code>
не может отображать код. < /p>
< /p>
работает нормально, но это просто текстовое.
Что я делаю неправильно?