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

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 behaviour for a

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 form