I have a div that needs to be displayed after hovering over another element. These elements are not within the same div. The popup info should appear when an icon with the class .option_36_124
is hovered over.
$(".option_36_124").hover(function(){
$('.popupinfo').show();
}, function(){
$('.popupinfo').hide();
});
.popupinfo {
background: black;
color: white;
top: 250px;
right: 527px;
position: absolute;
padding: 10px;
width: 250px;
display: none;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<span class="product_info"><i class="fa fa-info-circle option_36_124"></i></span>