is it possible to set the value of a label to the value of a local storage variable?
for local storage variable there is localStorage.setItem('key', 'item');
is there something similar for a Tiggzi('label')?????????
is it possible to set the value of a label to the value of a local storage variable?
for local storage variable there is localStorage.setItem('key', 'item');
is there something similar for a Tiggzi('label')?????????
Hello! Yes, here it is:
codelocalStorage.setItem('variableName', Tiggzi('label').text());/code
I'm sorry but my answer was wrong. i was lookin for somthing to set the Tiggzi('label').text()); = localStorage.getItem('variableName')
codeTiggzi('label').text(localStorage.getItem('variableName'));/code
what if i want to do this but iterating over the objects of a json array variable and the label its inside a list, ¿how can the list be populated instead of only showing the last one of the array?
Use a for-loop, iterating over local storage values.