Creating Many Draggable Elements in JavaScript

Hi everybody! I want to have multiple divs on my website to be draggable and movable across the website (or at least in the container which it’s found). I used this javascript to be able to move one but how do i change it so i can add other elements?
this is the link for the code: Create a Draggable Element in JavaScript | KIRUPA
thank you for ur help!

Hey @Diego_Ortiz - welcome to the forums :slight_smile:

You can find the code for doing that in this post: Create a Draggable Element in JavaScript - #3 by kirupa

:partying_face:

1 Like