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

He modificado un poco el código:
Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
mostrar(chk) {
  
ver = (chk.checked) ? 'block' 'none';
  
chk.form.txt1.style.display ver;
  
chk.form.txt2.style.display ver;
}
</script>
</head>
<body>
<form>
<input type="checkbox" onclick = "mostrar(this)" />
<textarea name="txt1" style="display:none"></textarea>
<textarea name="txt2" style="display:none"></textarea>
<input type="text" />
</form>
</body>
</html> 
Dependiendo de como tengas organizado tu formulario, es posible que en lugar de block tengas que usar inline

Saludos,