JQuery USES the on method to bind hover event instances


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