Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/06/2005, 09:32
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.

Te pongo un código de ejemplo:
Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
mostrar(num) {
  
document.getElementById('pepe').style.display = (num==0) ? 'none' 'block';
}
</script>
</head>
<body>
<p>Mostrar: <input type="radio" name="rad" onclick="mostrar(1)" />
Ocultar: <input type="radio" name="rad" checked="checked" onclick="mostrar(0)" /></p>
<table id="pepe" style="display:none">
<tr><td>Algo</td></tr>
</table>
</body>
</html> 
Saludos,