Hi,
In the context of JSP/STRUTS, I have defined a text input filed and a checkbox as:
------------------
<script language="javascript">
function clearFields() {
form = document.forms[0];
form.name.value = "";
form.checkbox1.value = false;
}
</script>
<html:text property="name"/>
<html:checkbox property="checkbox1"/>
Reset
----------------
The reset function is only working for the text field but nnot for the check box: it was not unchecked although I forced "form.checkbox1.value = false;".
Any wisdom for this?
THX
PY