Código:
for(i=0; i<=document.all.item("actu").length - 1; i++) { if (document.calgen.actu[i].checked) { total_actu = total_actu + 1; };
y lo toma de unos checkbox que tiene id variable .. yo quiero ahora utilizar getElementsByName o getElementsByid y no se como hacer
codigo creacion de checkbox
Código PHP:
<?php
echo "<input class=calgen type='button' size=4 value='>' onclick='javascript:sel_todo()'style='width:20px'>";
echo "</td>";
for($i=0;$i<$iTotalFilas;$i++) {
$bnc = "actu";
$bncf = $bnc.$fechas[$i][$col_anho].$fechas[$i][$col_mes_cad].$fechas[$i][$col_dia_cad];
echo "<td class=calactu><input class=calediactu type='checkbox' size=1 name='".$bnc."' id='".$bncf."'></td>";
}
?>