Make a Sortable List With Draggable Items Using JavaScript

No frameworks needed

Matt Croak Code
Better Programming
Published in
5 min readMay 17, 2020

--

Photo by Ralph Blvmberg on Unsplash

A question on Stack Overflow piqued my interest. It was about creating a list that can determine if the order of items is correct. Items are dragged by the user to change the order until it’s correct.

In this article, I’ll go over how to achieve this with vanilla JavaScript, HTML, and CSS. First, let’s…

--

--