// replace myform and mygroup with your form and group names
var val = 0;
for( i = 0; i < document.myform.mygroup.length; i++ )
{
if( document.myform.mygroup[i].checked == true ) {
val = document.myform.mygroup[i].value;
break;
}
}
alert( "val = " + val );
|