+ 1

Don't understand y this code doesn't work...

I have an event listener('click'). When I click on the element, it doesn't work. (Js starts Line 14.) I spent hours and hours switching things and experimenting to figure out the problem, It makes no sense y it Isn't working. https://code.sololearn.com/W47IQML5u7ri/?ref=app

11th Aug 2019, 6:40 PM
Ginfio
Ginfio - avatar
3 Respostas
+ 2
Ginfio , without showing your code it's hard to guess.
11th Aug 2019, 6:43 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
Your event listener won‘t trigger, because of the overlaying „bubbles“ div-container. If you set the z-index value of „bubbles“ to -1, the click-event works fine.
11th Aug 2019, 7:47 PM
Michael
Michael - avatar
0
TheWh¡teCat Ya, i just forgot to do that, if u reload, you'll see the code.
11th Aug 2019, 6:45 PM
Ginfio
Ginfio - avatar