I got distracted and forgot the update expression in my for statement;
should be
for (i=0;i<document.formName.elementName.length;i++){
as Dave Watts noted.
-----Original Message-----
From: Hayes, David [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 9:36 AM
To: CF-Talk
Subject: RE: Javscript
document.formName.elementName[i].value
If you don't know which one is checked, you'll have to loop through them:
for (i=0;i<document.formName.elementName.length){
if (document.formName.elementName[i].checked)
alert(document.formName.elementName[i].value);
}
-----Original Message-----
From: Kevin Schmidt [mailto:[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]