0
I need help finding tags <img>
inside the structure below.
When found, add a "hasimg" class together with the "skuFiltro" tag class <ul>
primary. I need to recognize if you have image or not so I can differentiate the CSS style of the front-end structure of a platform I’m working on.
<ul class="skuFiltro">
<li>
<ul class="filterBlock">
<li>
<a href="#">
<img src="/img/teste.img" alt="">
</a>
</li>
</ul>
</li>
</ul>
<ul class="skuFiltro">
<li>
<ul class="filterBlock">
<li>
<a href="#">380mm</a>
</li>
</ul>
</li>
</ul>
Thanks Vinicius, problem solved! :)
– Ivan Richard Roncatto
@Ivanrichardroncatto show! If my answer has contributed to your resolution, if you can mark it as "answer".
– Vinicius Gabriel