Page 1 of 1
setting Tiggzi('label').text() value to a local storage variable value
Posted: Wed Mar 27, 2013 12:02 pm
by prot984
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')?????????
setting Tiggzi('label').text() value to a local storage variable value
Posted: Wed Mar 27, 2013 12:31 pm
by Maryna Brodina
Hello! Yes, here it is:
codelocalStorage.setItem('variableName', Tiggzi('label').text());/code
setting Tiggzi('label').text() value to a local storage variable value
Posted: Wed Mar 27, 2013 12:39 pm
by prot984
I'm sorry but my answer was wrong. i was lookin for somthing to set the Tiggzi('label').text()); = localStorage.getItem('variableName')
setting Tiggzi('label').text() value to a local storage variable value
Posted: Wed Mar 27, 2013 1:18 pm
by Maryna Brodina
codeTiggzi('label').text(localStorage.getItem('variableName'));/code
setting Tiggzi('label').text() value to a local storage variable value
Posted: Sun Jun 02, 2013 7:03 pm
by Esau Romano
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?
setting Tiggzi('label').text() value to a local storage variable value
Posted: Sun Jun 02, 2013 9:28 pm
by maxkatz
Use a for-loop, iterating over local storage values.