Question: 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()

Answer: 
Like this -

```
$('#somegrid').on('mouseenter',function(){
 // mouseenter
}).on('mouseleave',function(){
 //  mouseleave
});

```
look at the [api](http://api.jquery.com/hover/) for hover

the hover function is shorhand for:

```
$( selector ).mouseenter( handlerIn ).mouseleave( handlerOut );

```

or if you are only passing in one handler:

```
$( selector ).on( "mouseenter mouseleave", handlerInOut );

```

the examples in the api illustrate this well.