0
I need to expand two elements. Both have the same class css.
The name of class for expansion is .fechado a
. One is in the element .accordion-seta
and another in .accordion-sinal
. It would be something like:
<div class="accordion-seta">
<div class="fechado">
<a href="#"><i class="fa fa-plus"></i></a>
</div>
<div class="accordion-sinal">
<div class="fechado">
<a href="#"><i class="fa fa-plus"></i></a>
</div>
</div>
</div>
How would the Javascript of this tagging look?
I know the code below expands the first.
document.querySelector(".accordion-seta .fechado a").click();
I need to open them both at once.
How are you opening these Divs? with CSS or JS? you can show the code?
– Sergio
I’m opening with JS
– Danilson Veloso de Sousa