You need to create a JavaScript function that will set the value of the
textfield or whatever to null, or "". It can be as simple as this...
function clearText() {
document.form1.textfield.value = "";
}
In your button tag, call the js function using the onClick event....
onClick="clearText()"
Remember, form1 is the name of your form (can be anything) and textfield is
the name of your textfield (again, can be anything).
Hope this helps,
Sam
"davaze" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
Can someone tell me how to make a Button in a form to clear a specific
textfield or whatever within that form.
I need a button to clear formfields, not to reset a complete form.
Thnx,
Dave. |