Patrick Kelly
Posts: 0
Joined: Wed Nov 20, 2013 6:00 am

How can I use Javascript to clear a textarea field?

Because there is not placeholder function for Textareas as there are for inputs, I would like to run a Js on click that clears the field (completely, no spacebars or anything). Is there a command in the Appery source that allows this?

Patrick Kelly
Posts: 0
Joined: Wed Nov 20, 2013 6:00 am

How can I use Javascript to clear a textarea field?

Nevermind. For future reference, you can do this by simply using two quotes with nothing in between:

Appery("objectName").val("");

I suppose I should have thought of that!

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

How can I use Javascript to clear a textarea field?

Hi Patrick,

Thank you for the update.

Return to “Issues”