I have an image which is embedded in a div. On the top of the image, I have a fontawsome Icon. When I click on the icon, a list of options opens. These options are basically simple words in divs. I want to print "Hi" when I click on any of these words. I am doing this right now:
$(".label").bind("click", function(e) {
e.stopPropagation();
console.log('Hi');
});
The event does not get triggered right now.
I looked at the question posted by someone else jQuery click on div that is on top of another div, I tried to use e.stopPropagation()
, but this also does not work.
Here is my code https://jsfiddle.net/06mqh3gs/5/
Any idea?