jQuery stopPropagation bubble down

Posted by Jasie on Stack Overflow See other posts from Stack Overflow or by Jasie
Published on 2010-04-28T09:35:56Z Indexed on 2010/04/28 9:43 UTC
Read the original article Hit count: 315

Filed under:
|

I have a div with a link inside of it:

<div id="myDiv">
    <a href="http://www.lol.com">Lol</a>
</div>

Clicking the <div /> should go somewhere, but clicking the child <a /> should go to www.lol.com. I've seen from previous questions and the jQuery website that .stopPropagation prevents bubbling upwards, but how do I prevent a bubble downwards (isn't that what's necessary here?).

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about event-bubbling