Bootstrap popover is not working

From the Docs on Popovers: Opt-in functionality:For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them yourself. So you must call .popover() manually in JavaScript like this: Or you can use whatever selector you want Here’s an example using StackSnippets. Show code snippet Note: This is similar to the answer … Read more

How to pass $(this) properly in click jQuery function

You code does not follow the right principles. Wrap everything in the document.ready function. Avoid global variables wherever possible. Make use of the fact that jQuery manages this for you. this will always be what you expect if you pass callback functions directly instead of calling them yourself.