Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/08/2006, 07:25
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 19 años, 7 meses
Puntos: 39
Algo asi?
Código:
<html>
<head>
<script>
var correcto = new Array(0,1,1,0);
function Verifica()
{
	rptas = document.forms[0].rpta;
	for (i=0; i<rptas.length; i++)
		if (rptas[i].checked && correcto[i]==1)
			alert("Correcto");
}
</script>
</head>

<body>
<form>
    <input type="checkbox" name="rpta" value="0"><br>
    <input type="checkbox" name="rpta" value="1"><br>
    <input type="checkbox" name="rpta" value="2"><br>
    <input type="checkbox" name="rpta" value="3"><br>
    <input type="button" value="Resultado" onClick="Verifica()">
</form>
</body>
</html>
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.