- 1
My heading is display After my unordered list item Link. I want to display heading first and second i want to do the unordered l
Display heading first and do unordered list item Link. https://code.sololearn.com/WYFgYSvy1LIu/?ref=app
1 Odpowiedź
+ 1
You are doing appendChild on body which always insert at last.. Try using insertBefore..
Like document.body.insertBefore(heading,ul)
This will work for you..