Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6862 closed bug (invalid)

With selector select the <div> can't get me want

Reported by: kay Owned by:
Priority: Milestone: 1.4.3
Component: selector Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description

the script code $(document).ready(function() {

$("#main").mouseout(function(){

alert("leave");

});

});

the html code

<div id="main">

<div style="width:200px;height:200px;float:left;background:blue;"></div> <div style="width:200px;height:200px;float:left;background:yellow;"></div>

</div>

when the mouse leave the blue area,the mouseout events are triggered,but i select the "main",i want show the alert when i mouse leaved blue and yellow both

Change History (2)

comment:1 Changed 13 years ago by kay

I already fix it

not use mouseout

use mouseleave

comment:2 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.