How do I use mouseneter mouseleave instead of hover(). Should i use them both instead of hover()?
$('#somegrid').hover(
function () {
//something;
},
What about legacy code - I mean what goes in mouseenter , what goes in mouseleave? i just had one action on hover()
look at the api for hover
the hover function is shorhand for:
or if you are only passing in one handler:
the examples in the api illustrate this well.
Like this -