When I hover over a div, I want to change some CSS properties. However, using 'toggleclass' didn't work as expected because the new background color wasn't overriding the existing class. So, I came up with the following method instead.
The challenge now is how to revert the CSS changes after hovering.
$('#menu_first_home').hover(function(){
$(this).css({ 'border': '10px solid rgba(186, 0, 0, 0.2)' });
$('.search-box').css({ 'background-color': 'rgba(186, 0, 0, 0.5)', 'color': 'rgba(186, 0, 0, 0.5)' });
});