John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Not clearing InputText anymore??

Hi, I want to clear an input text after a certain event and wrote this JS:

Appery('mobiletextinput_name').val('').textinput('refresh');

STrange because a couple hours ago before the testing went down it worked just fine. Now, only one out of a bunch work. Is that a bad JS? Is there a better one? Or is there some issue relating to saving my code on Appery's site thats causing only one out of many to work?

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

Not clearing InputText anymore??

John,

Your code is right, try to delete Event and add it again.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Not clearing InputText anymore??

Dear John,

Just to add.

textinput doesn't have refresh method so using val("") is enough.

Check control name in code and recreate handler, as Alena advised.

Return to “Issues”