Page 1 of 1

add value of label or input

Posted: Mon Apr 02, 2012 4:51 am
by erik

Hello, if i have 3 mobile label,

ex :

mobile label1 = 5
mobile label2 = 15

and i want to sum that 2 mobile label and put the result in mobile label3

mobile label3 = 20

can you help me?


add value of label or input

Posted: Mon Apr 02, 2012 4:59 am
by maxkatz

Use Tiggr(id).val() to get the value from a label, add the values and then set the values with Tiggr(id).val(value).

http://help.gotiggr.com/documentation...

Or you can use jQuery directly as well (without the Tiggr function)