<div id="abc">
<div id="a_b"> abcd </div>
<div id="c_d"> xyz </div>
</div>
I have a challenge where the divs on my page are generated dynamically and their IDs change every time the page loads. When the window is loaded, I need to pass the content of a_b
and c_d
to a function func()
, and then display the output within the same div. How can I access each child of div abc
and update their content accordingly?