I have this structure of div
s and I want to prevent parent click event from triggering when the child element is clicked.
<div onclick='methods(param)'>
<div></div>
<div>
<button onclick='method2(param2)'></button>
</div>
</div>
I tried passing event with each onclick
method but still it does not prevent parent click event.