Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/10/2007, 09:02
Avatar de Sr.Zzz
Sr.Zzz
 
Fecha de Ingreso: septiembre-2007
Mensajes: 42
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: radio buttons, ocultar y mostra elementos de formulario

Gracias por responder caricatos,
Disculpa, el mensaje anterior mio salio cuando ya habias enviado tu un mensaje.

Era algo tan simple, como esto.

Código HTML:
<html>
<head>
<script>
function Pregunta1(){
document.getElementById('pregunta').innerHTML = "Cual es la pregunta 1?<br>"
}
function Pregunta2(){
document.getElementById('pregunta').innerHTML = "Cual es la pregunta 2?<br>"
}
function Pregunta3(){
document.getElementById('pregunta').innerHTML = "Cual es la pregunta 3?<br>"
}
</script>
</head>
<body>
<form name=form>
<input type="radio" name="Radio" value="Uno" Onfocus="Pregunta1()">Uno<br>
<input type="radio" name="Radio" value="Dos" Onfocus="Pregunta2()">Dos<br>
<input type="radio" name="Radio" value="Tres" Onfocus="Pregunta3()">Tres<br>
<div id="pregunta">Seleccione una Opción</div></form>
</body>
</html>