Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I already fix it
not use mouseout
use mouseleave