+ 2
how to get item from localstorage and put inside the ul list item.
i am trying to make todo list which stay item remain after refresh i can put the input string to localstorage but dont know how to get the item and put inside li tag so that it stay after page reload.
1 Odpowiedź
+ 2
// set
localStorage.setItem('ui_list', list);
//get
var list = localStorage.getItem('ui_list');