Tema: ListBox
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/06/2004, 06:15
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Rehola.
Código HTML:
<html>
<head>
<script>
function cambiar(val) {
	if(val==1)
		document.getElementById('txt1').disabled=true;
	else
		document.getElementById('txt2').disabled=true;
}
</script>
</head>

<body>
<select onchange="cambiar(this.value)">
<option value="1">1</option>
<option value="2">2</option>
</select>
<input type="text" id="txt1" />
<input type="text" id="txt2" />
</body>
</html> 
Saludos,