1
You guys, I own a lot of divs like that:
<div class="funcionalidade">
<div class="imagem-funcionalidade azul-escuro">
<img src="https://www.xxx.com.br/img/xxxx/xxxx/logo-xxx.png"/>
</div>
<div class="conteudo-funcionalidade">
<div class="conteudo-titulo-funcionalidade">
<p class="titulo-funcionalidade">XXX XXXX</p>
</div>
<div class="ver-funcionalidade">
<img src="https://www.xxx.com.br/img/controle_transportadoras/func-xxx.png" id="emissao-de-cte" class="img-ver-mais" />
</div>
</div>
When my user clicks on the DIV see functionality I want it to remove the class (dark blue) from the DIV "image-functionality".
I can do all the rest of the process but I can’t remove this DIV, I can’t just ask it to give a FIND, because I need to remove only that specific DIV that was clicked. I tried to do it with Parent() but I can only go back one level. I also did some tests used parentElement, but it does not allow to use together removeClass(". dark blue").
Tests carried out:
$(this).parent(".imagem-funcionalidade").removeClass("azul-escuro");
this.parentElement.parentElement.parentElement.removeClass(".azul-escuro");
this.parentElement.parentElement.parentElement.parent(".imagem-funcionalidade")removeClass(".azul-escuro")
really that solved my problem, thank you very much for your help, thank you very much!
– Fábio Santos