I'm not exactly sure the best way of asking this, so please let me know if I need to expand. I have a LARGE form. The form is broken up into a bunch of pieces. Basically, the user comes to the site and gets about 26 check boxes. They can check 1 box or all 26. Depending on how many boxes are checked is what other parts of the form to load. So there are 20 other sections of the form that the user could possibly have to fill out.
What I am trying to do is figure out how to load these sections. First off, I am getting the answers to the checkboxes via an array and while loop. After that, what is the best way to tell the script which forms to line up for the user to answer them? var i=1; var formNumber = new Array(); while (i<=26) { if ($("input[name="+i+"]").parent('.checked').length) { formNumber[i] = $("input[name="+i+"]").val(); alert(formNumber[i]); } i=i+1; } This does fine and will alert out the values of the boxes checked. I had to do the if statement like that because I am using the vChecks plugin to make the check boxes all purty like. If anyone has any ideas or suggestions as to what I should do that would be awesome. Is this something that will take more then just JavaScript or can it be done with jQuery alone? Obviously the end of the form it will send an email with PHP, but I wasn't sure what type of processing it would entitle beforehand. Suggestions are very much appreciated. I am new to jQuery but I think I have a good grasp of most of it. -- View this message in context: http://www.nabble.com/Array-of-Check-Boxes-tp22673885s27240p22673885.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.