Sorry, Not JavaScript I know.
Here is a answer:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var radio_selection="0";
function radioButtons() {
if (radio_selection=="0")
alert("\nYou must check one of the radio buttons.");
else {
return true;
}
}
// End -->
</SCRIPT>
</head>
<body bgcolor="ffffff">
<form action="testresults.cfm" method="post" name="test" id="test">
Who Rules?<br>
<input type="checkbox" name="MyCheckBox1" value="ColdFusion Rules"
onClick="radio_selection='1'"> ColdFusion<br>
<input type="checkbox" name="MyCheckBox2" value="ASP Rules"
onClick="radio_selection='2'">ASP<br>
<input type="checkbox" name="MyCheckBox3" value="Dreamweaver Rules"
onClick="radio_selection='3'">Dreamweaver<br>
<br>
<INPUT TYPE="button" VALUE="Test" onClick="radioButtons()">
</form>
__________________________________________________
Nathan Stanford ColdFusion Tips Plus
[EMAIL PROTECTED] www.cftipsplus.com
__________________________________________________
> -----Original Message-----
> From: Nathan Stanford [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 27, 2000 9:39 AM
> To: CF-Talk
> Subject: RE: Javscript
>
> CheckBox Name is
> MyCheckBox1:
> <input type="checkbox" name="MyCheckBox1" value="ColdFusion Rules">
> ColdFusion<br>
>
> Submitted value is
> #MyCheckBox1#
>
> __________________________________________________
> Nathan Stanford ColdFusion Tips Plus
> [EMAIL PROTECTED] www.cftipsplus.com
> __________________________________________________
>
> > -----Original Message-----
> > From: Kevin Schmidt [SMTP:[EMAIL PROTECTED]]
> > Sent: Friday, October 27, 2000 10:35 AM
> > To: CF-Talk
> > Subject: OT: Javscript
> >
> > I can't remember how to determine the value of a checked radio button
> and
> > my
> > wonderful book from O'reilly ain't helping.
> >
> >
> > Kevin Schmidt
> > Internet Services Director
> > PWB Integrated Marketing and Communications
> > Office: 734.995.5000
> > Mobile: 734.649.4843
> >
> >
> >
> >
> --------------------------------------------------------------------------
> > ----------------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or
> send
> > a message with 'unsubscribe' in the body to
> > [EMAIL PROTECTED]
> --------------------------------------------------------------------------
> ----------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
> a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]