container popover bootstrap code example
Example 1: 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);
Example 2: popover bootstrap 4
<script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover({
html: true
});
});
</script>
Example 3: bootstrap popover
<button type="button" class="btn btn-lg btn-danger" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>