Browse - Programming Tips - jQuery: change things when mouse is over an object

Date: 2018nov21
Language: javaScript

Q.  jQuery: change things when mouse is over an object

A.  Use hover() 

myobj.hover(functionIn, functionOut);
For example
myobj.hover(function(event) { myobj.addClass('myhover'); }, function(event) { myobj.removeClass('myhover'); });
Usually this is better done with css.