I do a
localStorage.setItem(\'oldData\', $i(\"textbox\").value);
to set the value of key oldData to the value in a textbox.
oldData
It is not a good solution but it works and is performative.
localStorage.setItem("fruit", "Apples"); localStorage.setItem("fruit", localStorage.getItem("fruit") + "Orange");