If I have a div
with id="banner-tooltips"
, and within it I have n <span>
tags declared in variables with javascript, how do I detect individual click in these span
tags?
var caixaTooltips = document.getElementById("banner-tooltips");
var tooltips = caixaTooltips.querySelectorAll("span");