Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/05/2004, 04:33
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola, Agatta.

Prueba con esto:
Código PHP:
<html>
<
head>
<
script>
function 
pulsar(obj) {
    if (!
obj.checked) return
    
elem=document.getElementsByName('chk');
    for(
i=0;i<elem.length;i++) 
        
elem[i].checked=false;
    
obj.checked=true;
}
</script>
</head>

<body>
<input type="checkbox" name="chk" onclick="pulsar(this)" />
<input type="checkbox" name="chk" onclick="pulsar(this)" />
<input type="checkbox" name="chk" onclick="pulsar(this)" />
</body>
</html> 
Saludos,