bigtoe
Posts: 115
|
| Posted: 08/29/2004, 4:40 AM |
|
On this form page there are 24 text fields.
Each field is allowed a maximum of 80 characters.
Each field has some default text that is displayed
when the page loads.
The user can accept the default text in each
field or edit it.
But under some conditions the default text does
not apply and the user has to clear the respective
field by backspacing thru the field.
And this is time consuming because there
are so many text fields.
I would like to put a "Clear" button next to each
of these 24 text fields.
When the user clicks on the "Clear" button, only
the respective field is cleared of any text
(default or otherwise).
So I have 2 questions:
1. What would be the PHP code for clearing a text field?
2. Will this code cause a page reload?
I want to avoid a page reload. I don't want anything
else on the page to be impacted.
|
 |
 |
|