Kaniel Outis
Kaniel Outis

Reputation: 25

.mouseleave multiple elements with the same class

I have created several elements with the class "pathelement". now i would like to output a line in the log when the mouse leaves .pathelement and does not go to a new .pathelement

$( ".pathelement" ).mouseleave(function() {
    console.log("Lost");
});

Upvotes: 0

Views: 29

Answers (1)

Paul
Paul

Reputation: 26

You can use the .mousemove() function instead: HERE You can then check what elements your pointer is over at any time.

Upvotes: 1

Related Questions