Reputation: 4212
I have a script which allows to save and delete cookies: JsFiddle
Type something in the input field and save. Do this twice or more, now delete the items and refresh. You will see the last deleted item is still there. How is this possible??
ps. You can click the list to delete item
Upvotes: 0
Views: 476
Reputation: 17288
You save list values2
before removing clicked item. Demo: http://jsfiddle.net/V63Px/9/
Upvotes: 1