There are several divs with class .categorias
and I need to display the .nav-a
element only in the div category that I have with the mouse on it at the moment.
What's happening now is that when I hover over any of the% d and .categorias
it displays the .nav-a
in all of them, not just the .categorias
.
Follow the current code for reference.
$(document).ready(function(){
$('.nav-a').hide();
$('.categorias').mouseenter(function(){
$('.nav-a').fadeIn();
});
$('.categorias').mouseleave(function(){
$('.nav-a').fadeOut();
});
});