I have recently started using Bootstrap, and I am attempting to create a popover that appears when a button is clicked. Despite double-checking my initialization of Bootstrap and the popover element, the popup does not show up when I click the button.
When I click the button, I do not see any errors or information in the console. However, the button itself gets a border around it upon clicking, leading me to believe that the popover function is at least applying the bootstrap styles.
Below is how I initialized jQuery and Bootstrap:
<!---JQuery Iniialization --->
<script src="/jquery/jquery.min.js"></script>
<script src="/jquery/libs/jqueryui/jquery-ui.min.js"></script>
<link rel="stylesheet" href="/jquery/libs/jqueryui/jquery-ui.theme.min.css"/>
<link rel="stylesheet" href="/jquery/libs/jqueryui/themes/smoothness/jquery-ui.min.css" />
<!---Bootstrap Iniialization --->
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="78534d4e525c5b53524469425b68f65b4e52504558">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="663d31322e20373026303c23201938361a31320f3234113532">[email protected]</a>/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8a575b5854585f585b4c67535a695b305a43550f58554b424a45">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
Here are the HTML elements and JavaScript function I used:
<script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover() ;
});
</script>
<button type="button" class="btn btn-secondary mx-2" data-container="body" data-toggle="popover" tabindex="0" title="Details" data-trigger="focus" title="Details" data-content="And here's some amazing content. It's very engaging. Right?">
<i class="fa-light fa-memo-circle-info"></i></button>
Could you please help me figure out what might be missing?