Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/05/2006, 05:39
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 5 meses
Puntos: 61
Te serviría hacerlo así? Entiendo que cada check tiene un valor distinto y único:

<html>
<head>
<title>Untitled</title>
<script>
texto="";
function pe2pe(esto){
if(esto.checked){
texto+="|"+esto.value;
}
else{
texto=texto.split("|"+esto.value).join("");
}
alert(texto);
}

</script>
</head>

<body>
<form>

<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="2">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="3">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="4">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="5">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="6">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="7">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="8">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="9">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="0">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="11">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="12">Aas as<br />
<input type="checkbox" onclick="pe2pe(this)" name="pepe" value="13">Aas as<br />

</form>


</body>
</html>
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.