Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/11/2003, 11:47
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola, Alexiel.

A ver si esto se acerca a lo que buscas:
Código PHP:
<html>
<
head>
<
script>
function 
activar(lon) {
    
activo=(lon>0) ? false true;
    
document.getElementById('codigo').disabled=activo;
    
document.getElementById('titulo').disabled=activo;
}
</script>
</head>

<body>
<input type="text" onKeyUp="activar(this.value.length)">
<input type="text" id="codigo" disabled>
<input type="text" id="titulo" disabled>
</body>
</html> 
Saludos,