Results 1 to 3 of 3
Jan 15, 2003, 18:58 #1
- Join Date
- Jan 2002
- 0 Post(s)
- 0 Thread(s)
Getting Values from 40 Checkboxes
Hi guys and gals,
I am coding a quiz that will have 40 checkboxes that the user will be able to check.
(Right now I am trying to get this code to work with 4 and will change it to 40 once I figure out my problem.)
What I want to do is count up the amount of checked boxes and display it to the user.
I know I could do this with copying and pasting a line of code over and over again, but I thought it would be much smarter to use a loop and cut the JS down to only a few lines.
--A temporary file is set up at: http://design.suncitydesign.com/assets/AssetsJS.htm
This is my JS code:Code:
Does anyone know what I am doing wrong, I can't seem to figure it out, if it is even possible this way.