+ 2
I want to append first div to first heading and append second div to second heading. Thanks you.
First div to first heading and second div to second heading. https://code.sololearn.com/Ww7BIfeeOfMa/?ref=app
1 Antwort
+ 4
Instead of document.body.appendChild
you can use heading.appendChild(div)
appendChild() is available for all html elements