This is what I’m trying to achieve:
It works well in jsfiddle but when I try this code in Bubble (in a plugin I created), it doesn’t work at all.
This is the preview link of the project where I use the plugin:
And just to confirm, the Jquery dependency is turned on.
All I’m trying to do, is to show an alert when I click on the image.
I’ve made sure the div of the image has the ID Attribute (“foo” in this example).
I’m not sure what’s preventing the alert to show when I click on the image.
If you have any ideas, I would be really grateful.