Hello,
On click of a button, I like to read the button's current text, and depending on an action change that button's text. I found this in some appery.io docs, but haven't been able to successfully use it:
//to read the button text
$('[dsid=button]').text();
//to change the button text without messing up formatting
$('[dsid=button]').find('.ui-btn-inner').text('New value');
I assume the id is the component name.
thx,
RP