On Friday, June 02, 2006, at 2:49 PM, Eric Anderson wrote: >Kevin Olbrich wrote: >> I would like to put a checkbox in the column/row headers to toggle the >> boxes in a particular row or column. Each box has a name like >> 'position_A1' or 'position_H12'. > >Why not just use radio buttons. That is what they are for and they will >work without Javascript enabled. > >> Any suggestions of how to do this? > >Maybe give each checkbox in a group a class name? Then use >document.getElementsByClassName(). > >_______________________________________________ >Rails-spinoffs mailing list >[email protected] >http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Really any kind of button would work. Essentially what I am trying to do is provide some helpers for the user to fill in a potentially large grid. The user may turn on rows A and , and then may want to turn off the two at the end of each one. getElementsByClassName is a good idea, I'll have to give that a shot. _Kevin -- Posted with http://DevLists.com. Sign up and save your mailbox. _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
