Code :
<div id="container">
<div id="link">Link</div>
</div>
$('#link').click(function (e) {
console.log("link");
});
$('#container').mousedown(function (e) {
console.log("container");
});
I'd like that, when I click on #link, it will not fire the #container handler. Tried stopPropagation() or preventDefault(), but I think it is the wrong approch?