Currently, I am attempting to use jQuery to append hover CSS styles to buttons. While I have been successful in applying the desired styles upon hovering over the button, the issue arises when the mouse moves away - the styles remain.
Here's the code snippet:
$('#all').hover(function() {
$('#all').css({backgroundColor: '#3DC0F1', color: '#ffffff'});
})
Despite successfully applying the styles on hover, they persist even after moving the mouse away. Can anyone spot where I may be going wrong in my approach?