I am using the drag&drop function from HTML5 with sockets. If one drags an object into an area, another user will see this object appearing on his site. If user one removes the object by dragging it back into the area it came from, it disappears for user two.
I remove the element for user two by sending the objects div id via sockets and removing it with .remove().
However, if user one changes the div ID in chrome developer tools, the object wont disappear for user two because the div id is invalid.
Is there a way to prevent this issue?
Thank you