Bug Tracker

Modify

Ticket #6862 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by kay

I already fix it

not use mouseout

use mouseleave

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.