Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/10/2006, 06:00
Avatar de capa
capa
 
Fecha de Ingreso: octubre-2006
Mensajes: 86
Antigüedad: 17 años, 7 meses
Puntos: 1
De hecho tiene que ser con JavaScript, o también lo puedes hacer con AJAX
Este tema no tiene que ver nada con PHP, pero hay te dejo un ejemplo, no los eh probado en otros navegadores.
Código HTML:
<script type="text/javascript"> 
function Otros(sel){
if (sel=='0'){
document.getElementById('Otros').style.display = "block";
}else{
document.getElementById('Otros').style.display = "none";
}
}
</script> 

<table width="312" border="1">
  <tr>
    <td width="96">TITULO:</td>
    <td width="200">
      <select id="titulos" name="select" onChange="Otros(this.value);">
        <option value="3">Secretaria</option>
        <option value="2">Doctor</option>
        <option value="1">Ingeniero</option>
        <option value="0">Otros</option>
      </select>
    </td>
  </tr>
  <tr name="Otros" id="Otros" style=" display:none;">
    <td>Que es? </td>
    <td>
      <input type="text" name="otro">
    </td>
  </tr>
  <tr>
    <td>como le va </td>
    <td>&nbsp;</td>
  </tr>
</table> 
espero que le sirva, Suerte.

Última edición por capa; 26/10/2006 a las 06:09