M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Exchanging data from an element in html component to Appery and vice-versa

hi,

I have a html component on my page and in that html component, using JS code I want to read what is the text on a Appery Label on my page.

And also I need to be able to read the value of a form input element (which is in the html component) in Appery using JS. Whats the correct way to do this?

Thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Exchanging data from an element in html component to Appery and vice-versa

Hello,

Please use JS below:

var input = Apperyio("inputName").val();

var label = Apperyio("htmlName").val();

here inputName - input's name, htmlName - name of the HTML component

Return to “Issues”