I have a div containing a link, when I click on the container, I have some AJAX functionality, but I also have a link in the div, which I want to function as a normal link and not trigger the click handler.
<div class="box">
Lorem ipsum dolor sit amet...
<a href="/actions/something/">Edit</a>
</div>
$('.box').on('click', function() {
$.ajax({
...
});
});
I attach the handler to all of the other text in the container, but that wouldn't fire the handler if I click on the box background.