< input type = "radio" value = "yes" onClick = "get(this)">
function get(radioBtn)
{
val = radioBtn.value;
.....
}
----- Original Message -----
From: "Andy Ewings" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 1:18 PM
Subject: Java Script
I have 3 radio buttons on a form with the same name but different values.
When each of them is clicked a JS function fires which attempts to trap the
value. However I keep getting "undefined". I'm pretty sure this is because
the JS doesn't like the fact that the 3 controls are the same name. Anyone
got a solution?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists