[thelist] JavaScript: check all boxes within a table

.jeff jeff at members.evolt.org
Wed Feb 12 18:09:01 CST 2003


bill,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: WMW Mail
>
> How would I check all of the checkboxes within a
> specific table? I have three or four tables in one page
> (the number varies) and I want to have one null-valued
> checkbox that checks or un-checks all of the boxes in
> that same table. I am already doing this with a function
> that checks all the boxes in that document, but I don't
> have the foggiest how to limit it to individual tables,
> or if that's even possible. Couldn't find any
> documentation that might help, so maybe someone here
> can.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

it'd be a trivial task if the names of the checkboxes were unique to each
table.  then, it'd simply be a matter of using my script:

http://members.evolt.org/jeff/code/checkbox_check_all.cfm

however, if they're all named the same, you'd need a function that you'd
pass the index of the specific checkboxes you wanted to set to all or none
checked.

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list