how to initialize popover bootstrap code example
Example 1: bootstrap popover style width
.popover{
max-width: 100%;
/* Max Width of the popover (depending on the container!) */
}
Example 2: bootstrap popover on dynamic element
var popOverSettings = {
placement: 'bottom',
container: 'body',
html: true,
selector: '[rel="popover"]', //Sepcify the selector here
content: function () {
return $('#popover-content').html();
}
}
$('body').popover(popOverSettings);