Hello Andy,

<html>
<head>
        <title>Untitled</title>
</head>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
        function chkValue(control){
                alert(control.value);
        }
//-->
</SCRIPT>
<body>
<form>
<input type=radio name="radTest" value="First" onclick="chkValue(this)">
<input type=radio name="radTest" value="Second" onclick="chkValue(this)">
<input type=radio name="radTest" value="Third" onclick="chkValue(this)">
</form>

</body>
</html>



-- 
Critter, MMCP
Certified ColdFusion Developer

Crit[s2k] - <CF_ChannelOP Network="Efnet" Channel="ColdFusion">
-------------------------------------------
Thursday, August 16, 2001, 1:18:11 PM, you wrote:

AE> I have 3 radio buttons on a form with the same name but different values.
AE> When each of them is clicked a JS function fires which attempts to trap the
AE> value.  However I keep getting "undefined".  I'm pretty sure this is because
AE> the JS doesn't like the fact that the 3 controls are the same name.  Anyone
AE> got a solution?

AE> ------------------------------------------------------------------ 
AE> Andrew Ewings
AE> Project Manager
AE> Thoughtbubble Ltd 
AE> http://www.thoughtbubble.net 
AE> ------------------------------------------------------------------ 
AE> United Kingdom 
AE> http://www.thoughtbubble.co.uk/ 
AE> Tel: +44 (0) 20 7387 8890 
AE> ------------------------------------------------------------------ 
AE> New Zealand 
AE> http://www.thoughtbubble.co.nz/ 
AE> Tel: +64 (0) 9 488 9131 
AE> ------------------------------------------------------------------ 
AE> The information in this email and in any attachments is confidential and
AE> intended solely for the attention and use of the named addressee(s). Any
AE> views or opinions presented are solely those of the author and do not
AE> necessarily represent those of Thoughtbubble. This information may be
AE> subject to legal, professional or other privilege and further distribution
AE> of it is strictly prohibited without our authority. If you are not the
AE> intended recipient, you are not authorised to disclose, copy, distribute, or
AE> retain this message. Please notify us on +44 (0)207 387 8890.



AE>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to