M
mad.scientist.jr
According to
http://www.quirksmode.org/js/forms.html
you need to look through a radio button's members to find the value:
I tried writing a reusable function to return the value, see code at:
http://www.geocities.com/usenet_daughter/javascript_radio.htm
but for some reason I can only get a value if I hard code the control
name.
Can anyone explain how to do this?
Thanks
http://www.quirksmode.org/js/forms.html
you need to look through a radio button's members to find the value:
Radio buttons
Unfortunately it's not possible to see at once which radio button in a group the user has checked. You need to go >through all radio's and see which one's checked property is true.
I tried writing a reusable function to return the value, see code at:
http://www.geocities.com/usenet_daughter/javascript_radio.htm
but for some reason I can only get a value if I hard code the control
name.
Can anyone explain how to do this?
Thanks