0
I have the following structure:
<div class="submenu">
<ul>
<li>
<div class="btn-submenu btn-submenu-xstore"></div>
<a href="/plataforma-de-ecommerce">xStore - Plataforma de E-commerce</a>
<div class="submenuDescription">Tecnologia para a realização de vendas de forma prática, segura e completa.</div>
</li>
</ul>
<ul>
<li>
<div class="btn-submenu btn-submenu-b2b"></div>
<a href="/plataforma-de-ecommerce/b2b">E-commerce B2B Customizado</a>
<div class="submenuDescription">Solução para vendas a atacado (B2B) destinada à indústrias, distribuidoras, importadoras e atacadistas.</div>
</li>
</ul>
<ul>
<li>
<div class="btn-submenu btn-submenu-marketplace"></div>
<a href="/plataforma-de-ecommerce/marketplace">Marketplace (Shopping Virtual)</a>
<div class="submenuDescription">Plataforma de e-commerce para a operação de múltiplas lojas.</div>
</li>
</ul>
I wish when I clicked on ul he clicked on to, that’s inside that ul.
I did that, and it didn’t work:
$("submenu.ul").click(function{ $(".submenu a").trigger("click"); })
Can’t you put the <a> overlaying the <ul>? It would be easier to put the <a> encompassing the whole <ul>
– UzumakiArtanis
I wasn’t the one who built the structure. In order not to lose the stylization, I prefer to do something in Jquery.
– Felipe Viero Goulart
All right. I only commented because it seems like something simple. I believe the answers contained solve your problem @Felipestroker
– UzumakiArtanis