I have the following div structure:-
<div id="a" onclick="function1();">
<div id="b">
</div>
<div id="c">
</div>
</div>
Of course, clicking "a" will trigger function1() since "b" and "c" are located inside "a", when click on "b" or "c", function1() is also triggered.
Actually, I don't want function1() to be triggered when clicking "b". I tried to use z-index to make "b" very above "a", but it doesn't help.
I am seeking a way that is similar to:-
<div id="b" onclick="function1() return false"></div>