I have this odd problem where i have an UL with some LI elements in it.. I have bound a dblclick() event to both the UL and the LI, and when I dblclick the LI element, both the LI event and the UL event is triggered.. is there a way to avoid this?
This is my code:
$("ul").dblclick(function () {
alert("ul clicked");
});
$("li").dblclick(function () {
alert("li clicked");
});