+ 1

JS: how to put elements already made through html, and new elements created through JS in a different order?

HTML: <body> <div> Elm 2 </div> </body> Now how would I create another <div> element through JavaScript and append it to body, but it has to be before the elm 2. ?

8th Jan 2020, 10:27 PM
Ginfio
Ginfio - avatar
1 Réponse