How to execute a function when mouse overs a division and all its nesting elements inside? Like
<div id="main">
<div id="sub1">Sometext</div>
</div>
<script>
$(function() {
$("#main").mouseover(function() {
//This function fails to execute if i am over #sub1
});
});
</script>
I want to execute the mouseover function when it with over #main
regardless of the children inside