Page 1 of 1

Setting value of a Label through Custom Javascript

Posted: Mon Feb 06, 2012 12:28 am
by Alberto da Silva

Dear Tiggzi,

I would like to click on a button and then set the value of a label through custom javascript.

What is the code that I should use to set a value of a label through javascript? I tried this but it didn't work:

var myvalue = 10;
var myResult = Tiggr ('lbl_BMI_Result');
myResult = myvalue;

Thanks,

Alberto da Silva


Setting value of a Label through Custom Javascript

Posted: Mon Feb 06, 2012 2:35 am
by maxkatz

Tiggr('id') returns a jQuery reference so to set the label would be like this Tiggr('id').text('new label');