I'm trying to loop through all checkboxes in an HTML table that is built dynamically (size will vary). I think I understand the basic premise and I beleive I need to call out the parent element (the table) to search for only checkboxes in that table. I think I'm close but I need some help. Thanks in advance!
Code:
function check_all
dim orow
dim CBox
set orow=document.getElementsByName("Approve_Table") (0).getElementsbyname("input")
Cbox = orow.count
for i = 0 to Cbox
orow(i).checked = "Yes"
next
end function