View Full Version : asp form
01-27-2003, 08:55 PM
When creating an asp form, is there a way to erase all input fields prior to typing?
I have an inventory database and when a user adds an item in, they have to erase the previous input fields data when the form opens up.
Thank you in advance, Phillip
01-27-2003, 10:09 PM
If you want to erase the content of the form you will need to use javasciprt to clear the contents of the form, you should call the function from the body onload.
01-27-2003, 10:54 PM
Can you please provide an example?
Thank you, Phillip
01-28-2003, 12:27 AM
Unless you specify the fields having a value, then they should already be blank. Can you show me an example of what you're talking about?
Just guessing here:
<input type="text" name="whatever" value="" />
<input type="text" name="whatever" value="<% = whatever %>" />
Most new ASP developers have the reverse problem - prepopulating fields when they WANT to. ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.