This is probably very easy, but I can't figure it out for the moment being.
I have html like this:
<div class="current-colors">
<div class="boxes">
<div class="item"></div>
<div class="item"></div>
</div>
</div>
The <div class="boxes">
is display as block.
Current jQuery - when user moves from the div-containter with class boxes:
$(".current-colors").on('mouseout', '.boxes', function(){
$(".filter-menu .current-colors .boxes").hide();
});
the <div class="boxes">
are hidden and that is correct.
But my issue is that when user moves to <div class="item">
the <div class="boxes">
is hidden as well. I don't want that. I want the <div class="boxes">
to be hidden ONLY when leaving "outside" and not leaving to any child divs. How do I achieve that?