When I hover 1 child, I try to hide other parents div ( child including ) except the child hovered and its parent.
<div class="wrap">
<div class="parent">
<div class="child"></div>
</div>
<div class="parent">
<div class="child"></div>
</div>
<div class="parent">
<div class="child"></div>
</div>
<div class="parent">
<div class="child"></div>
</div>
</div>
I found this very similar, but reversed, and can't find a way to make it work.
Hover on 1 child - hide other children which are inside other divs, css only
$('.dep').hover(function() {
$(this).parent().children().not(this).find('.dim').css({'opacity' : '1'})
}, function() {
$('.dim').css({'opacity' : '0'})
})