RE: Reset button does not clear JSP fields

2004-11-29 Thread O. Oke
Thank you all. I will experiment with the Javascript option. O. Oke --- [EMAIL PROTECTED] wrote: > I'm not sure how tricky it is in JavaScript... > > function doit(obj) { > obj = obj.form; > i = 0; > while (obj.elements[i] != null) { > if (obj.elements[i].type.toLowerCase() != > "bu

RE: Reset button does not clear JSP fields

2004-11-29 Thread fzlists
I'm not sure how tricky it is in JavaScript... function doit(obj) { obj = obj.form; i = 0; while (obj.elements[i] != null) { if (obj.elements[i].type.toLowerCase() != "button") { obj.elements[i].value = ""; } i++; } } Attach this to the onClick event of a button in the f

RE: Reset button does not clear JSP fields

2004-11-29 Thread Pilgrim, Peter
> -Original Message- > From: aris [mailto:[EMAIL PROTECTED] > > > Instead of a reset you could use a simple button and the > related onClick > event to call a javascript that sets all field to "". > What do you think about this "workaround"? > Take note that it isn't an expected behavio

Re: Reset button does not clear JSP fields

2004-11-29 Thread Derek Broughton
On Monday 29 November 2004 10:15, aris wrote: > Instead of a reset you could use a simple button and the related onClick > event to call a javascript that sets all field to "". > What do you think about this "workaround"? > Take note that it isn't an expected behaviour for a reset button. I suggest

Re: Reset button does not clear JSP fields

2004-11-29 Thread aris
Instead of a reset you could use a simple button and the related onClick event to call a javascript that sets all field to "". What do you think about this "workaround"? Take note that it isn't an expected behaviour for a reset button. I suggest you to name such a button with a value different from