I am trying to make the popover display near a different element rather than the trigger. My current setup looks like this:
$triggerElement.popover({
title: varTitle,
content: varContent,
html: true,
placement: 'auto top',
trigger: 'manual'
});
..........
<div class="shopper"></div>
<button type="button" class="btn btn-primary">Add</button>
Right now, when I click the button, the popup appears at the bottom of the page as expected. However, I want it to appear near the top right corner of the 'shopper' div (just below the div). Is there a way to achieve this using a selector or can someone assist me with CSS?
The popover is currently displayed above the button when triggered, but I would like it to be displayed just below the shopper div tag instead. Essentially, I want the shopper div tag to act as the trigger for the popover.