Ver Mensaje Individual
  #10 (permalink)  
Antiguo 25/09/2006, 09:40
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola Tarecito

Prueba este ejemplo:
Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
poner(obj) {
  if (
obj.checked)
    
document.forms[0]['txt'].value += obj.value;
  else {
    
document.forms[0]['txt'].value;
    
t.split(obj.value).join('');
    
document.forms[0]['txt'].value t;
  }
}
</script>
</head>
<body>
<form>
<input type="checkbox" value="uno" onclick="poner(this)" />
<input type="checkbox" value="dos" onclick="poner(this)" />
<input type="checkbox" value="tres" onclick="poner(this)" />
<input type="text" name="txt" />
</form>
</body>
</html> 
Saludos,