set value of input to 'null'
I want to use button 'on click' event to set property of input field to 'null'. Basically clear whatever it currently in the input, making it empty again.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I want to use button 'on click' event to set property of input field to 'null'. Basically clear whatever it currently in the input, making it empty again.
Hi Dave,
Did you check this section?
http://devcenter.appery.io/documentat...
I don't know what model and storage has to do with my question. And if the answer is buried in there, I wouldn't know it if jumped up and bit me. Can you please draft up an illustration of what I can do to make this happen? Something us simple folks can understand? Please?
I tried setting button click to this:
function Clear()
{
document.getElementById("RxName_forminput").value= "";
document.getElementById("RxDose_forminput").value= "";
document.getElementById("RxFreqNum_selectmenu").value= "#";
document.getElementById("RxFreqPer_selectmenu").value= "how often";
document.getElementById("RxNotes_forminput").value= "";
document.getElementById("RxNum_forminput").value= "";
document.getElementById("RxPharmacy_forminput").value= "";
document.getElementById("RxPhone_forminput").value= "";
document.getElementById("RxStoreNum_forminput").value= "";
}
Didn't work. SOmeone please help me.
Dave,
Use this code to clear Input fields:pre$("input").val("");/pre
Dave,
You should run JavaScript on some event:
code$("[name=input_name]").val(""); /code
оr
codeAppery("input_name").val("");/code
where "input_name" is the name of input component
Thank you Evgene.