Ver Mensaje Individual
Antiguo 25-mar-2008, 10:03   #11 (permalink)
angelmf
angelmf ha deshabilitado el karma
 
Fecha de Ingreso: febrero-2008
Mensajes: 105
Re: campo de texto con javascript

YA RESOLVI MI PROBLEMA AQUI ESTA LA SOLUCION:
Código HTML:
<table >
        <tr>
          <td width="117">
            <input type="radio" name="GrupoOpciones1" value="dpto" id="GrupoOpciones1_0" onclick="dpto.style.display = 'block'; nombre_u.style.display='none'; apellido_u.style.display='none'">
            Departamento</td><td width="170"><input type="text" name="dpto" style="display:none" /></td>
        </tr>
        <tr>
          <td>
            <input type="radio" name="GrupoOpciones1" value="empleado" id="GrupoOpciones1_1" onclick="nombre_u.style.display = 'block'; apellido_u.style.display='block'; dpto.style.display='none' ">
            Empleado</td><td>
                <input type="text" name="nombre_u" value="NOMBRE" size="10" style="display:none" /> 
               <br>
                <input type="text" name="apellido_u" size="10" value="APELLIDO" style="display:none" />
              </td>
        </tr>
      </table>
angelmf está desconectado   Responder Citando