+ 2

I need help with a HTML and Javascript click and drag function

When I try to move the 12 to the 3de div the 11 takes its place. Why is it doing that https://code.sololearn.com/W6orzoPl1w2s/?ref=app

8th Jun 2018, 7:08 AM
Aiden Brody
Aiden Brody - avatar
3 Answers
+ 3
All your div ids are similar. Have you tried setting 11 and 12 with distinct ids so that your program actually recognises them as different divs? If you are planning to do so, it would be a good idea to use classes instead of id for your CSS styling.
8th Jun 2018, 9:19 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Thank you. It works now
11th Jun 2018, 11:00 AM
Aiden Brody
Aiden Brody - avatar
0
Hi
11th Jun 2018, 7:22 PM
Emirkan AdıgĂŒl
Emirkan AdıgĂŒl - avatar