I found it online. I have a choice .. But it does not meet my requirements .. So I wrote one myself .. Roar .. <HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> determine whether a set of Radio selections have been selected </title>
</Head>
<Body>
<SCRIPT type = "text/JavaScript">
Function check ()
{
If (! Isseleradio ("B "))
{
Alert ("B has not selected ");
}
}
// Is Radio selected for Peng's compilation?
Function isseleradio (bname)
{
VaR bn = Document. getelementsbyname (bname );
VaR K = 0; // none of them are returned and compared with bn. Length
For (I = 0; I <Bn. length; I ++)
{
If (! BN [I]. Checked)
{
K ++;
}
}
If (k = BN. length)
{
Return false;
}
Else
{
Return true;
}
}
</SCRIPT>
<Form ID = "form1" name = "form1" method = "Post" Action = "">
<P>
<Input type = "radio" name = "B" value = "radiobutton"/>
000
<Input type = "radio" name = "B" value = "radiobutton"/>
111
<Input type = "radio" name = "B" value = "radiobutton"/>
</P> 222
<P>
<Input type = "radio" name = "A" value = "radiobutton"/>
333
<Input type = "radio" name = "A" value = "radiobutton"/>
444
<Input type = "radio" name = "A" value = "radiobutton"/>
</P> 555
<P>
<Input type = "Submit" onclick = "check (); Return false;" name = "Submit" value = "Submit"/>
</P>
</Form>
</Body>
</Html>