How to get all id of div.A that has div.collapse is visible,example:
<div class="A">
<div id="1"></div>
<div class="collapse"></div>
</div>
<div class="A">
<div id="2"></div>
<div class="collapse" style="display:none"></div>
</div>
<div class="A">
<div id="3"></div>
<div class="collapse"></div>
</div>
which i should get id 1 and 3.
Probably not the most concise way but
would work for the example you posted.