Page 1 of 1

JS for Clearing Input Field

Posted: Wed Nov 20, 2013 6:54 pm
by emma h

What is the JS that allows me to clear an input field after clicking a button. I want to be able to enter a location on the map app and have it disappear in the input field when it shows up on the map. Thanks


JS for Clearing Input Field

Posted: Wed Nov 20, 2013 7:36 pm
by Kateryna Grynko

Hi Emma,

Use the following code:preAppery("myinput").val("");/prewhere 'myinput' is a name of Input component.


JS for Clearing Input Field

Posted: Fri Nov 22, 2013 3:15 pm
by emma h

Thank you!