prot984
Posts: 0
Joined: Thu Mar 14, 2013 1:16 pm

setting Tiggzi('label').text() value to a local storage variable value

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')?????????

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

setting Tiggzi('label').text() value to a local storage variable value

Hello! Yes, here it is:

codelocalStorage.setItem('variableName', Tiggzi('label').text());/code

prot984
Posts: 0
Joined: Thu Mar 14, 2013 1:16 pm

setting Tiggzi('label').text() value to a local storage variable value

I'm sorry but my answer was wrong. i was lookin for somthing to set the Tiggzi('label').text()); = localStorage.getItem('variableName')

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

setting Tiggzi('label').text() value to a local storage variable value

codeTiggzi('label').text(localStorage.getItem('variableName'));/code

Esau Romano
Posts: 0
Joined: Sun Jun 02, 2013 7:03 pm

setting Tiggzi('label').text() value to a local storage variable value

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

setting Tiggzi('label').text() value to a local storage variable value

Use a for-loop, iterating over local storage values.

Return to “Issues”