u should try document.form.radio_button_fieldname[index].value.
becoz U are using the same name it is a array of the fieldname starting
from 0.
U are absolutely perfect and right to name the radio buttons with the same
name provided ur functionality requires that.
Eg if U want some one to fill a form and one of the field is Sex then u
either want them to choose either M or F and definately not both.
Then U name the field ( 2 radio buttons) the same name.


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission,  dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error,  please contact the sender and delete the material from any
computer.
-- Phoenix Global Solutions (India) Pvt Ltd., www.pgsolutions.com
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


                                                                                       
                               
                    Andy Ewings                                                        
                               
                    <andy.e@thoughtb        To:     CF-Talk 
<[EMAIL PROTECTED]>                               
                    ubble.net>              cc:                                        
                               
                                            Subject:     Java Script                   
                               
                    08/16/01 10:48                                                     
                               
                    PM                                                                 
                               
                    Please respond                                                     
                               
                    to cf-talk                                                         
                               
                                                                                       
                               
                                                                                       
                               



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?

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