Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/01/2012, 14:55
Avatar de madhatterdef
madhatterdef
 
Fecha de Ingreso: diciembre-2011
Ubicación: argentina
Mensajes: 213
Antigüedad: 12 años, 4 meses
Puntos: 59
Respuesta: activar input text si el otro input text esta lleno

prueba esto

Código:
<html>
<head>
<script type="text/javascript">
function validar(form) {
  form.txt2.disabled=(form.txt1.value=='');
}
</script>
</head>
<body>
<form>
<input type="text" name="txt1" onkeyup="validar(this.form)" />
<input type="text" name="txt2" disabled="disabled"/>
</form>
</body>
</html>