[Solved] How to get the ids of the children using the parent id?


document.querySelectorAll('#board > div').forEach(dv=>console.log(dv.id))
<div id="board">
  <div id="sss" class="card"><img src="https://stackoverflow.com/questions/61471086/img/sss" alt="sss"></div>
  <div id="ssa" class="card"><img src="https://stackoverflow.com/questions/61471086/img/sss" alt="sss"></div>
  <div id="ssb" class="card"><img src="https://stackoverflow.com/questions/61471086/img/sss" alt="sss"></div>
</div>

0

solved How to get the ids of the children using the parent id?