#27835

Actually,
This code is working quite well. It is executed on the client browser prior to getting the copy of the HTML. I refactored the code and am reposting it :

function processFormData(oForm) {
var e, i = 0;
while (e = oForm.elements[i++]) {
if (e.type == ‘checkbox’ || e.type == ‘radio’) {
if (e.checked == true) {
e.defaultChecked = true;
} else {
e.defaultChecked = false;
}
}
if (e.type == ‘select’) { // Still needs to be done
}
}
}