Wrox Programmer Forums
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 12th, 2008, 04:16 PM
Friend of Wrox
Join Date: Apr 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Radio Value

I have an issue where I have assigned a number to the value attribute of a radio item on a form. I manipulate that data behind the scenes. My problem is that the value is coming back undefined. I setup a quick test button to show me the alert of the value. I cannot figure out what it occurring...help!

      <label>$10: Camp Memory DVD
      <br />
        <input type="radio" name="DVD" value="10" id="DVD" />
        <input type="radio" name="DVD" value="0" id="DVD" />
        <input name="test" type="button" onclick="alert(document.camperregistration.DVD.val ue);" />

Clay Hess
Clay Hess
Old February 13th, 2008, 02:41 AM
Friend of Wrox
Join Date: Apr 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts

I figured it out. I forgot that radio groups are in an array.

Clay Hess

Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio button Jolley_tolson Javascript 2 July 15th, 2007 05:50 AM
radio-button grstad HTML Code Clinic 3 February 28th, 2006 08:32 AM
Radio Button hoailing22 ASP.NET 1.0 and 1.1 Basics 1 June 2nd, 2005 12:08 AM
How to use the radio buttons? ben_VB VB.NET 2002/2003 Basics 1 January 18th, 2005 12:29 PM
LIVE RADIO theokrtz Classic ASP Professional 1 August 24th, 2004 07:36 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.