I have always used the mouseover
event, but while reading the jQuery documentation I found mouseenter
. They seem to function exactly the same.
Is there a difference between the two, and if so when should I use them?
(Also applies for mouseout
vs mouseleave
).