My Bootstrap form comes with several input fields, some of which are in multicolumn rows, and I would like them to display a popover upon focus.
While the standard implementation allows me to show a popover next to the input field, my preference is to have the popover displayed next to the entire form.
Currently, all my popovers are initialized based on the data-toggle
attribute:
$('[data-toggle="popover"]').popover({
'trigger': 'focus'
});
I attempted to create a popover for the entire form and trigger it using the individual fields. However, when I adjusted the popover's position using
$('.popover').css({top: diff});
, it consistently reverted back due to auto-repositioning.