[jQuery] firebug-like element focusing

[jQuery] firebug-like element focusing


Hi,
I need to select an element of the DOM by passing over it with the
mouse pointer, like it happens in Firebug (you know it, isn't it?). I
thought to write down something like this:
$("div").mouseover(function(){
//execute some code
});
<div id="A">
<div id="B1"></div>
<div id="C"></div>
<div id="B2"></div>
</div>
The issue is that, once i put the mouse pointer over the div "C", the
script iterates its logic untill it arrives to the last-parent
element. So, being it instant, it seems i always select the lowest-
level item.
How can i solve it? consider that, as firebug does, each element has
to be selectable.
Thanks(sorry for my english :P )