I need to define a div\'s background color on :hover with jQuery, but the following doesn\'t seem to work:
$(\".myclass:hover div\").css(\"background-color\
Use JQuery Hover to add/remove class or style on Hover:
Hover
$( "mah div" ).hover( function() { $( this ).css("background-color","red"); }, function() { $( this ).css("background-color",""); //to remove property set it to '' } );