I want to close all popovers that are in a modal, so that they are not displayed if I reopen the modal.
The problem is that if I try to close at $("#modal").on("hidden", function() { [...] });, the targets are already unavailable. The same goes if I do it at .on("shown", ....
I cannot delete using :
$(".buttonPopover").popover("hide");
Because .buttonPopover is never available at the time I want to delete the popovers. How can I close them all without accessing their parent ?