dur dub
Posts: 0
Joined: Sun Jun 22, 2014 2:02 am

updating text in input using java script

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

updating text in input using java script

Hi,

Use this code:

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

where input - is an input component name

dur dub
Posts: 0
Joined: Sun Jun 22, 2014 2:02 am

updating text in input using java script

Hi Alena,

Thanks for the help. It worked. :)

Return to “Issues”