I've got a div
inside another div
. Both have event listeners attached to run a function on mousedown - call them outerDivFunction
and innerDivFunction
. When I click the inner div
, both functions are invoked; I'd like it to only invoke innerDivFunction
.
How to do this? (Vanilla solutions are preferred to jQuery.)