I have two divs — when mouseenter divA it should disappear and divB should appear. When mouseleave divB divA should show again and divB disappear. I’ve used this code to achieve it:
$("#divA").on("mouseenter", function() { $("#divA").hide(); $("#divB").show(); }); $("#divB").on("mouseleave", function() { $("#divA").show(); $("#divB").hide(); });` The only problem is that when divA hides another div (which used to sit under it) enters his place … So the question is if there’s a way to let divA disappear visually but not “physically”? Thank you!