Is Checked
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.
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 posted this at 03:25 — 10th November 2000.
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.