Page 1 of 1

how do i change text in listitem if i click the button? (In javascript)

Posted: Fri Aug 14, 2015 4:24 pm
by Mani Maran

If i click the mobilebutton_7 under panel_6. it wants to change text in mobilelistitem_49 under mobileheader and what do i want to write in javascript? Don't link any url please, i already tried those links


how do i change text in listitem if i click the button? (In javascript)

Posted: Fri Aug 14, 2015 8:27 pm
by Serhii Kulibaba

Hello Mani,

Is this button located in list item? Are these listitems generate via service?


how do i change text in listitem if i click the button? (In javascript)

Posted: Fri Aug 14, 2015 8:50 pm
by Mani Maran

No, button is located in panel and listitem is located in app page. No, list items won't generate any service


how do i change text in listitem if i click the button? (In javascript)

Posted: Sat Aug 15, 2015 5:21 pm
by Mani Maran

anybody answer me ?


how do i change text in listitem if i click the button? (In javascript)

Posted: Sat Aug 15, 2015 7:09 pm
by Serhii Kulibaba

Please use JS below:

preApperyio("mobilelistitemName").text("Test text");/pre

here mobilelistitemName - mobilelistitem's name


how do i change text in listitem if i click the button? (In javascript)

Posted: Sat Aug 15, 2015 9:50 pm
by Mani Maran

Thanks Mr. Sergiy Kulibaba


how do i change text in listitem if i click the button? (In javascript)

Posted: Tue Jan 15, 2019 12:20 pm
by Francois Conradie9916163

Maybe I'm stupid, but when you start an app from scratch and you place to components a button and text and you name the text txtBox and add the following script

Apperyio("txtBox").text("100");

When you click the button, I can't understand why a simple statement like this won't work

Write
Alert("Hello World") and it pops up so the click event does fire from the button


how do i change text in listitem if i click the button? (In javascript)

Posted: Tue Jan 15, 2019 3:34 pm
by Illya Stepanov

Hello Francois, do you use a jQuery Mobile Appery.io builder?
I have just tested the case and it works perfectly - please check out if there any errors in the browser console when running your app.