Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing a CLEAR button in an HTML form
Message
From
03/07/2001 13:30:21
 
 
To
03/07/2001 13:16:16
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00526393
Message ID:
00526398
Views:
16
Hi!

Put something like following in the INPUT tag for that button:
onclick="this.form.NameOfTheTextArea.Value='';"
I'm not sure about the reference to the form, maybe it should be 'FormName' instead of 'this.form' or something like that. Better post this in the HTML/WEB forum...

HTH.

>Hi,
>
>I have one HTML form with two textareas and a submit button. My program sends the HTML page with both textareas filled with some content, the user can edit them and press the submit button to send data back to the server app.
>
>Sometimes the user may desire to clear one of the textareas before inserting text (instead of selecting all text and then deleting), to make things easy I decided to put a button labelled "Clear" that when pressed clears the contents of that textarea.
>
>How can I implement that?
>
>Thanks,
>
>Fernando
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform