I am trying to change the background color of a div element when hovered using jQuery, but for some reason the following code is not working as expected:
$(".myclass:hover div").css("background-color","red");
Can someone provide guidance on how to achieve this effect with jQuery? I have tried various solutions but none seem to work. Any suggestions would be greatly appreciated. Thank you!