Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/09/2010, 21:14
Avatar de pabloe9k
pabloe9k
 
Fecha de Ingreso: julio-2008
Ubicación: Argentina
Mensajes: 190
Antigüedad: 16 años, 6 meses
Puntos: 3
Respuesta: Validación con JavaScript

Cita:
Iniciado por _cronos2 Ver Mensaje
Código Javascript:
Ver original
  1. onload=function(){document.getElementById('btn').disabled=true;}
  2. function habil(c){
  3.  document.getElementById('btn').disabled=c.value.length<=4 ? true : false;
  4. }
Código HTML:
Ver original
  1. <form action="zaraza.php" method="post">
  2.  
  3.    <input type="text" name="texto1" onkeyup='habil(this);' onblur='habil(this);' />
  4.  
  5.    <input type="submit" value="enviar" id='btn' />
  6.  
  7. </form>

Saludos (:

Una respuesta tan rápida como útil.
Realmente me ayudaste mucho, _cronos2

Muchísimas gracias.

Saludos!!