The CSS hover effect is no longer functioning after a jQuery action has been applied:
Below is the CSS code currently in use:
#slider-information-content{
display: inline;
visibility: hidden;
}
#slider-information:hover #slider-information-content {
display: inline;
visibility: visible;
}
Along with the following jQuery code:
$("#slider-information-content-close").click(function(e) {
$("#slider-information-content").css("visibility", "hidden");
e.preventDefault();
return false;
});
The hover effect works properly initially. I am able to hide the div using jQuery as well. However, after hiding the div with jQuery, the hover effect ceases to work and the div does not reappear. What changes can be made to address this issue? And why is it happening?