jQuery- hover () method

jQuery hover () method

hover () method provides two functions when the mouse pointer over the selected elements to run.
Method of triggering mouseenter and mouseleave events.

```javascript
$(selector).hover(handlerIn, handlerOut)

```

$(ob).hover(function () {
$(ob).attr('id', 'temp')
$('#temp>ul').stop(true, true).show(400)

}, function () {
$('#temp>ul').stop(true, true).hide(400)
$(ob).removeAttr('id')

})

Guess you like

Origin www.cnblogs.com/chenlulu1122/p/11888938.html