How do I trigger click on a child element without letting the click event bubble upto the parent & thereby create a infinite trigger loop of click event.
For example I have like this:
<li>
<a> ... </a>
</li>
I want to trigger a click event on a
whenever li
is clicked, but to prevent infinite trigger loop, I should avoid event propagation upto parent. How do I do that ?