I have the following HTML:
<div class="load">
<img src="images/load.svg" class="loadimg">
</div>
<div class="tela carregando">
<span>Teste</span>
</div>
the following css:
.carregando {
display: none;
}
.load {
display: none;
}
.load > .carregando {
display: block;
}
and JS:
$(".loadimg).click(function(){
$('.tela').removeClass('carregando');
});
I want when removing class
loading CSS changes style to something like:
.load > .carregando {
display: block;
}
If the class carregando
has active class load
is display block ... in the last example CSS I tried using >
but it did not work ...
It has to be in CSS in jQuery I know how to do ...