I have a form I am displaying to a user where they will check at least one (but maybe more) radio button(s). I want to see if the buttons are checked, and if they are NOT, read them into an array to be used on the next form (buttons that are checked are not displayed on the next form). Can anyone help me with this? This is what I have so far:
iCount = 0;
newarray = new Array();
for ( var i = 0; i < myForm.92.length; i++ )
{
if ( myForm.92.checked ) iCount++; { }
else {
// read into another array
newarray = myForm.92;
} // end else
} // end for
// now read them into new array
for (var k = 0; k< newarray.length; k++)
{
document.MainForm.99_.value = newarray;
}
iCount = 0;
newarray = new Array();
for ( var i = 0; i < myForm.92.length; i++ )
{
if ( myForm.92.checked ) iCount++; { }
else {
// read into another array
newarray = myForm.92;
} // end else
} // end for
// now read them into new array
for (var k = 0; k< newarray.length; k++)
{
document.MainForm.99_.value = newarray;
}