I'm currently working on a method to incorporate multiple popovers that have a similar appearance to the following:
The screenshot of my first JsFiddle project (click to view)
The initial progress I've made can be seen in my first JsFiddle, accessible at this link:
Example 1 - Successfully operational! (link is now no longer functional)
Despite replicating the exact DOM elements and references used for bootstrap, popper, material-icons, jquery, along with identical CSS and .popover()
function and settings in my second JsFiddle, it does not seem to work. Interestingly, I was able to create a functional popover using document.createElement()
elements on my primary webpage, which makes the non-functionality of this one even more puzzling. Attempts to troubleshoot outside of JsFiddle haven't yielded any positive results either. Could someone please assist?
You can access my second JsFiddle here: Example 2 - Unfortunately non-functional! Any insights into why would be greatly appreciated. (link is now inactive)
An update: Thanks to the prompt assistance from @MichaelWhinfrey and Stack Overflow, the code was fixed within a remarkably short timeframe after the initial post was made! Delighted with the outcome. The solution provided by MichaelWhinfrey is as follows:
It appears that running the popover function after creating the elements, possibly by initializing them within $(document).ready(), might resolve the issue you are facing. I have updated your fiddle to include an example jsfiddle.net/0cwe1v9y – Michael Whinfrey 25 minutes ago (2019-04-30 11:33:17Z)