Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/02/2005, 02:42
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

Prueba con esto...

<html>
<head>
<title>Untitled</title>
<script>
function mostrar(esto){
document.getElementById("resto").innerHTML=documen t.getElementById("div"+esto).innerHTML;
document.forms['prueba'].elements['mandar'].disabled=false;
}
</script>
</head>

<body>
<form name="prueba" action="pepe.html">

<input type="radio" name="formulario" value="1" onClick="mostrar(this.value)" id="formulario" /><label for="formulario">Mostrar Formulario 1</label><br>
<input type="radio" name="formulario" value="2" onClick="mostrar(this.value)" id="formulario" /><label for="formulario">Mostrar Formulario 2</label><br>
<div id="resto"></div>

<input type="submit" name="mandar" disabled="disabled" />
</form>

<div id="div1" style="visibility:hidden">Pepe:<input type="text" name="pepe" /><br>
Cosa:<input type="text" name="cosa" /><br>
</div>
<div id="div2" style="visibility:hidden">Zapatos:<input type="text" name="zapatos" /><br>
Camisa:<input type="text" name="camisa" /><br>
</div>


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

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