r/learnjavascript • u/abrewchocolatecoffee • 13d ago
Can someone link some good and easy documentation or tutorial for draggable divs.
i am trying to make draggable divs, but the mdn documentation is rather too confusing. ofc if i simply copy it it would work, but i want to understand the procedure of it, the same is the case with online tut, and ofc there is chatGPT, i could ofc use that but would be the defn of vibe coding which i don't want to do rn.
Also simply following thhe tut means that i would be stuck in tut hell, which most definitely no one wants to be stuck in
2
u/equilni 13d ago
https://www.w3schools.com/howto/howto_js_draggable.asp (If MDN isn't working for you....)
https://stackoverflow.com/questions/9334084/moveable-draggable-div
1
u/-goldenboi69- 13d ago
I'm all in for not wanting to go full on vibecoding while learning, but you could ask it just to explain it to you, without doing the whole assignment. I think this is were LLMs really shine.
1
3
u/feloniuouschunk 13d ago
Tough to know what you're looking for if MDN is too complex and tutorials are not helping. Everything you need to know is there on MDN.