I don't really understand what e.stopPropagation() do.
If I have a link using return false
to the handler I should get what I want (prevent the default link behaviour, so it doesnt "call" the next href location) :
<a id="myLink" href="http://www.google.com">Go to google</a>
$('#myLink').click(function (e) {
alert("No, you don't go to Google");
return false;
});
Adding e.stopPropagation()
what can I get? Can you give to me a solid example showing to me what e.stopPropagation()
can do?