Jquery Ignore Event
Posted
by HealthWarning
on Stack Overflow
See other posts from Stack Overflow
or by HealthWarning
Published on 2010-05-26T02:41:10Z
Indexed on
2010/05/26
2:51 UTC
Read the original article
Hit count: 293
JavaScript
|jQuery
I'll just go straight to the point.
Let's say we have this markup:
<span href="">Text <a href="">Link</a></span>
We have events bound to both elements. How do I make it such that when I click on the anchor tag, the event on the parent will not be triggered? I've tried using the Jquery method stopPropagation()
but still no luck. Any thoughts? Thanks.
© Stack Overflow or respective owner