Take a look at either 1. getInputs()... (http://www.prototypejs.org/api/form/getInputs) or 2 . the $$ construct... http://www.prototypejs.org/api/utility/dollar-dollar
If you choose the $$ option, it'll be easier if all of the checkboxes belong to the same class - e.g., class='first_checkbox' You could do something like var checkboxes = $$('first_checkbox'); or var checkboxes = $$('input:[type="checkbox"]'); // if they're not all the same class then checkboxes.each( function(s){ //build the query string for your Ajax request }); On Jan 11, 3:11 am, Hussein B <hubaghd...@gmail.com> wrote: > Hey, > I have a checkbox in front of each row in my table. > Upon clicking on submit button, I want to collect the checked boxes > and send values via Ajax request. > How to iterate over the checked boxes? > Thanks for help and time.
-- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.