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,