I have this: $('#night > li').appendTo('#day');
The code moves all <li>
elements of <ul id="night">
to the end of <ul id="day">
.
Please, how can I translate this into VanillaJS?
I mean, how do I rewrite the code so I do not need Jquery?
Have this so far:
document.getElementById('night').li.appendTo.document.getElementById('day');