I am trying to change the background image of a div on hover with jQuery. This is what I came up so far, however, it\'s not working:
html
Try doing this:-
$('.logo').hover( function() { $(this).css("background-image", "url(http://placehold.it/300x100/ffffff/000000.png&text=second)"); }, function() { $(this).css("background-image", "url(http://placehold.it/300x100/ffffff/000000.png&text=first)"); } );