In my setup, I have the following arrangement:
<div class="menuHomeCategorias Accesoriosclass">
<div class="categoryName Accesorios" name="Accesorios">
<p>Accesorios</p>
</div>
<img class="categoriasHome" alt="Categoria" name="Accesorios" src="media/com_hikashop/upload/accesorios.jpg">
</div>
Additionally, in my CSS file, I have included the following styling information:
.categoryName:hover {
background-color: #BF003E;
color: #FFFFFF;
}
My objective is to activate the .categoryName:hover
effect when hovering over the image. I attempted achieving this using jQuery, but encountered a "too much recursion" error message:
$('.categoriasHome').bind('mouseover', function(){
console.log("over");
$(".categoryName.Accesorios").mouseover();
});
If anyone has any guidance or suggestions on how to resolve this issue, I would greatly appreciate it.
Thank you in advance for your assistance.