https://stackoverflow.com/questions/46724542/javascript-move-elements-up-and-down-in-the-list JavaScript: Move elements up and down in the list I am working on a script to move list elements up and down with a button click. I can make it work with jQuery, but I have troubles writing this in pure (vanilla) JavaScript. $(function() { ... stackoverflow.com