Hi all, Can anyone tell me hoe to clear form fields after clicking on the submit button. I have fields which contain sensitive info. When the submit button is clicked the data is sent to another JSP. But how can I clear these fields after submitting? Thanks Rui
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
posted
0
Use a javascript function to loop through all the form fields in the onSubmit/onClick of the submit button. Have the function check for the type of form field and then set it to it's default value.
Bosun
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
maha anna
Ranch Hand
Joined: Jan 31, 2000
Posts: 1467
posted
0
OnSubmit of your Submit button call this Javascript fn
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: HOW TO CLEAR FORM FIELDS AFTER SUBMITTING?