Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checkboxes and tables

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
I have a page that dynamicly loads data into several different tables. I have a checkbox for each item which has been named the ID of that item as referenced in my database. I would like my colume header to call an ONCLICK fuction that will "select all" or "deselect all". How can I do this. Because the checkboxes are being called dynamicly out of the DB, I never know how many I will have.

My table IS hard coded and named specificly. Is there a funciton call that can "turn on/off all checkboxes in table A"?
Thanks for any help/advice.
Mark
 
try
AllRadio=document.all.tags("radio")
and then use
for each radioObj in AllRadio
msgbox radioObj.name ________
George, M
 
That works fine for ALL checkboxes on the page, but what if i just want the boxes to be checked on the particular table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top