mouseenter bubbling
mouseenter bubbling
HTML:
<ul>
<li>First</li>
<li>Second</li>
</ul>
JS:
$("ul").on("mouseenter", "li", function() {
var t = $(this).text();
console.log(t);
});
Why does this work?
"mouseenter" should not bubble!
Topic Participants
alex.cheshev
rb
m.goleb