I am working with jQuery hover and mouseout script but issue is that when I set hover on div when mouseout is working, div gets hide, and visible continuously (blinking).
How to overcome this problem?
Here is my code:
<style>
.append_div{
position: absolute;
top: 8%;
display: none;
background-color: pink;
border-right: 0px;
left: 0px;
padding: 30px;
display:none;
}
</style>
<body>
<div class="menu">
Hover Me
</div>
<div class="append_div">
</div>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script>
$('.menu').hover(function(){
$(".append_div").show();
$(".append_div").css({"width":"170px","z-index":"1078"});
});
$( ".menu" ).mouseout(function() {
$(".append_div").hide('slow');
});
</script>
</body>