I'm trying to fire a function on the mouseout of a div. However when you mousover an element in the div it fires the mouseout.
<div id="my_div">
<div class="another_div">X</div>
</div>
<script>
$("#my_div").mouseout(function () {
alert('weeeee, I am out!');
}
</script>
This makes sense but how can I test for the mouseout event only if it is not on a child element?