I want to made a $('.x').mouseenter(), only if there is div.y is above and not under!
I have try with .prev(), .prevAll(), .find() and many others but nothing worked!!
<div id='cont'>
<div>toto</div>
<div class="y">tata</div>
<div>titi</div>
<div>tata</div>
<div class="x">xxx</div>
<div></div>
</div>