Onclick add/delete data from datalist in localstorage
问题 How to add/delete data from datalist via jquery with add and delete button? Will it also be possible to store datalist in localstorage? *The reason behind this is that its going to be per-user-input-datalist. much like "type it once and store it" Please help, Thanks in advance. 回答1: Just in case someone else wants to accomplish the same method, Here's how I manage to pull this off: (if there's a better or efficient way please share it :) var datarray = []; function deldata() { // retrieve