Displaying 1 result from an estimated 1 matches for "position_a1".
2006 Jun 02
2
Group checkbox toggling
...estion, but it might be interesting
anyway.
I''m generating a rails app and in one form I have a grid of check-boxes
(rows = A..H and col=1..12).
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''.
My preferred approach would be to get the name of each checkbox that
matches a particular pattern... say /position_A\d+/. However, I can''t
seem to find a way to do this in JS.
Any suggestions of how to do this?
_Kevin
--
Posted with http...