emma h
Posts: 0
Joined: Wed Nov 20, 2013 6:54 pm

JS for Clearing Input Field

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

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

JS for Clearing Input Field

Hi Emma,

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

emma h
Posts: 0
Joined: Wed Nov 20, 2013 6:54 pm

JS for Clearing Input Field

Thank you!

Return to “Issues”