View Full Version : How do i clear the contents of a form <textarea> when the user submits?
Silver Sun
10-12-2002, 11:56 PM
How do i clear the contents of a form <textarea> when the user submits?
I want this to only occur for the text area no other fields
Thanks in advance:thumbsup:
redmeat
10-13-2002, 01:05 AM
formName.testAreaName.value=''';
put that in the function that deals with the submitted data. Or when the page is loaded again after the form has been submitted. Ot just shove it in an a href tag and let the user click to clear manually.
glenngv
10-14-2002, 10:17 AM
but why do you want it cleared before the form is submitted? just curious.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.