Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/04/2004, 10:08
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.

Pon así el select:

<select onchange="cambiar(this)">

Y luego pones esta función:
Código PHP:
function cambiar(obj) {
document.getElementById('txt').disabled=(obj.selectedIndex==1)
if (
obj.selectedIndex==1)
   
document.getElementById('txt').value='';

Saludos,