JQuery USES the on method to bind hover event instances
- 2020-03-30 04:32:59
- OfStack
The text teaches you to use the on method, the hover method.
The code is as follows:
$(obj).on("mouseover mouseout",function(event){
if(event.type == "mouseover"){
//Mouse hover
}else if(event.type == "mouseout"){
//Mouse left
}
})
Go and have a try