Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/12/2002, 12:28
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola, harg.

No se si he entendido bien tu pregunta, pero te pongo un poco de código a ver si se aproxima:
Código PHP:
<html>
<
head>
<
title>Untitled Document</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
script>
    function 
comprobar(valor) {
        
sueldo.disabled=(valor!='alumno');
        
apoyo.disabled=(valor!='egresado')
    }
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<select name="sel" onChange="comprobar(this.value)">
<option value="alumno">Alumno</option>
<option value="egresado">Egresado</option>
</select>
Sueldo:
<input name="sueldo" type="text" value="" disabled size="5" maxlength="5">
Apoyo:
<input name="apoyo" type="text" value="" disabled size="5" maxlength="5">
</body>
</html> 
Ya nos contarás si es esto o si van por otro lugar los tiros. Saludos,