I have 3 divs overlayed like so:
<div id="div1" style="height: 500px; width: 500px; position:absolute; z-index: 1"></div>
<div id="div2" style="height: 500px; width: 500px; position:absolute; z-index: 2"></div>
<div id="div3" style="height: 500px; width: 500px; position:absolute; z-index: 3"></div>
All of them have on.click event handlers that pop up different messages
Is it possible that when clicking one, no matter which one is on top, it allows all underlying divs with click through (tried "pointer events: none" but that disables all functionality) to fire their respesctive event handlers? Say that I click on div 3 and div 2 and 3 fire their event handlers as well. Also, I don't want hardcoded solutions like:
$('#div3').on('click',function() {
// trigger div 1 and 2 events manually
})
The problem with pointer events: none is that whoever has it, won't trigger it's event handler like I want it, any way to fix that?