for (var childItem in td.childNodes) { if (td.childNodes[childItem].nodeType == 1) td.childNodes[childItem].checked = true; }