why do you add the last portion in the loop ?It automatically breaks out of the loop even if only one checkbox is selected. ************************ } else {
if (comfList.checked) { document.forms[frmName].submit(); return true; } else { alert('Please check your comfortability list.'); return false; }
2 Comments:
why do you add the last portion in the loop ?It automatically breaks out of the loop even if only one checkbox is selected.
************************
}
else {
if (comfList.checked) {
document.forms[frmName].submit();
return true;
}
else {
alert('Please check your comfortability list.');
return false;
}
}
}
************************
thank you.
its using document.*formname*.elements[*variable*]
and setting variable = 'name[]' with the brackets that finally worked for me.
thanks
-j
Post a Comment