PDA

View Full Version : Javascript form


Bouley86
05-05-2003, 09:03 PM
Ok, i'm looking for something and i've done searches all over and haven't been able to find it. Let's say i have a form (for this example i would like to use a page on my site http://profiles.bouley86.com/mods.php?sn=htmlforumsTEST&pass=htmlforumsTEST&what=extras because that is the page im going to be using the script on)
now if you go to that page it has the countdowns and whenever you save it, it updates any changes you've made. What I want is a button so that when you click it, it will clear the fields next to it..i don't want a reset button i want it to clear everything. So an example:
You go the page i posted. The first event is
Whatever
and the date is
April 22 2011
And then there's a clear button next to it. When you click the clear button i want it to change so the event is blank and the date changes to
Month Day Year

This is really confusing and i dont know if you'll understand...so pretty much a form button that changes the value of a text field and a selection..thingy?ha..

scoutt
05-06-2003, 11:23 AM
why not a reset button? that is the purpose of it

Bouley86
05-06-2003, 05:59 PM
the reset button doesnt CLEAR the form it RESETS it..there's a difference in what im saying
So if you have
<input type="text" name="whatever" value="<? echo $whatever; ?>"> (because it's in php) Let's say $whatever = Potato so in the form is the word potato. Now if you type something else in the form and hit a reset button it will reset the form to Potato. I want there to be a button that will erase all text from the form so it displays nothing. Does that make more sense?