Is Checked

They have: 7 posts

Joined: Aug 1999

I have a page full of checkboxes, depending on the ones checked different responses are returned. I simply need a piece of javascript code validating that atleast one checkbox was checked.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

ipd-

Welcome to TWF!

make your checboxes an array ( arrayName[num] )
then loop through them to check their status.

there is some code here:
http://www.webmaster-forums.com/showthread.php?threadid=12308

(Have you tried searching for an answer before? It's easy and you can find a lot of answers that way.)

Mark Hensler
If there is no answer on Google, then there is no question.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.