Can not get drag and drop use localstorage

I need help trying to get drag and drop cloning to use a saved version of a text box.

i.e. The user can currently drag the text box into the box to the right. However, each text area on the left also allows users to edit the text the next time they open the page.

Both of these work.

However, I cannot force the drag and drop utility to account for a modified version of the text field. those. if the user changes the text in "option 1" to "hello" and returns later, the text area will now contain "hello" because of local storage, but when they drag this text field into the field to the right, the source text "option 1" is copied instead hi saved value

Here is the link to my fiddle: http://jsfiddle.net/hemang2/QkRpp/

Any help would be greatly appreciated!

+4
source share
1 answer

after fixing all the error,

Here is the fiddle link (updated): http://jsfiddle.net/E8RHE/

check it out.

+1
source

Source: https://habr.com/ru/post/1433319/


All Articles