Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/12/2011, 14:16
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: ¿Como puedo validar que todos los checkbox esten seleccionados?

esto es algo muy básico. lee este tutorial para que empieces a dejar de ser nuevo en esto. no siempre obtendrás respuesta a algo tan elemental.

para que te sea mas sencillo usa un solo botón submit
Cita:
<head>
<script type="text/javascript">
function fnc(f) {
for (var i=0; i < f.elements.length-1; i++) {
elemento = f.elements[i];
if (elemento.type == 'checkbox' && !elemento.checked) return false;
}
}
</script>
</head>
Cita:
<form id="form1" name="form1" method="post" action="checklist_print.php" onsubmit="return fnc(this)">
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}