Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/06/2015, 17:28
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Problemas con el array checkbox

Te agradezco mucho Alexis88.

Así me quedo:

Código Javascript:
Ver original
  1. function fn_marcar1(index){
  2.       var long_certificado = document.frmnoticia.certificado.length;
  3.       alert("longitud del check: "+long_certificado);
  4.       if(long_certificado==null){
  5.          var chkone;
  6.          chkone = document.frmnoticia.certificado.checked;
  7.          alert("checkone " + chkone);
  8.       }else{
  9.        var i; var chk;
  10.        for (i = 0; i < long_certificado; i++) {
  11.         alert("contador "+i);
  12.         chk = certificado[i].checked;
  13.         alert("check " + chk);
  14.        }
  15.     }
  16. }