HELP! I have a survey where the questions displayed on the site are dynamically pulled from a database and each question has a series of radio buttons. Each question needs to be answered and I thought this would do the trick but it isn't:
<!--
function checkQuestions(which) {
// require at least one radio button be selected per question
for (i = 0; i < which.length; i++) {
if (which.element.checked != true) {
alert("Please answer every question on this page."
}
}
return (false);
}
//-->
the function is obviously being called when form is submitted-- any ideas?!
<!--
function checkQuestions(which) {
// require at least one radio button be selected per question
for (i = 0; i < which.length; i++) {
if (which.element.checked != true) {
alert("Please answer every question on this page."
}
}
return (false);
}
//-->
the function is obviously being called when form is submitted-- any ideas?!