I need to expand two elements. Both have the same class css.
The class name for expansion is .fechado a
. One is in the element .accordion-seta
and another in the .accordion-sinal
element. 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 you like JavaScript to be enabled?
I know the code below expands the first one.
document.querySelector(".accordion-seta .fechado a").click();
I need to open both at once.