DEV Community

Ninxe
Ninxe

Posted on

 

How to do this drag and drop?

I need help to drag a component from a row to another row and drop it.

For example, dragging a div from a third row second column to the first row and first column and drop it there.

Top comments (3)

Collapse
 
vulcanwm profile image
Medea

This article might help: w3schools.com/html/html5_draganddr...
I used the functions in another project of mine and it worked out really well!

Collapse
 
ninxe profile image
Ninxe

Thank you, Medea! I've seen that article. Anyways, the function sortable from jQuery worked the way I wanted.

Collapse
 
vulcanwm profile image
Medea

oh right, great!

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

⭐️🎀 JavaScript Visualized: Promises & Async/Await

async await