Page 1 of 1

updating text in input using java script

Posted: Sun Jun 22, 2014 2:02 am
by dur dub

I have the following script:

var reading = localStorage.getItem('_reading');
Appery("i_reading").text(reading);
Appery("b_add").text(reading);

where:
i_reading is an input box
b_add is a button

the script correctly updates the 'b_add' text to the value of 'reading' but it does not update 'i_reading' at all.

Am I missing something?


updating text in input using java script

Posted: Sun Jun 22, 2014 6:30 am
by Alena Prykhodko

Hi,

Use this code:

pre Appery('input').val('New value'); /pre

where input - is an input component name


updating text in input using java script

Posted: Sun Jun 22, 2014 2:13 pm
by dur dub

Hi Alena,

Thanks for the help. It worked. :)