I need to capture an event instead of letting it bubble. This is what I want:
Fro
I'd do it like this:
$("body").click(function (event) { // Do body action var target = $(event.target); if (target.is($("#myDiv"))) { // Do div action } });