Ver Mensaje Individual
  #10 (permalink)  
Antiguo 23/04/2010, 07:26
Avatar de _cronos
_cronos
 
Fecha de Ingreso: abril-2010
Mensajes: 135
Antigüedad: 14 años, 1 mes
Puntos: 1
Respuesta: Como lo podria hacer.

El código vendría a ser algo así, luego si quieres verificar que todos los campos se llenen o algo por el estilo habría uqe hacer más cosas.

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2.  <head>
  3.   <title>A</title>
  4.  </head>
  5.  <body>
  6.   <form name="formu" id="formu" action="">
  7.    Registro:<br>
  8.    Nombre usuario:<input type="text" name="text1" id="text1" disabled><br>
  9.    <input type="button"  value="Nueva cuenta" onClick="habil();">
  10.   </form>
  11.  </body>
  12. </html>

Código Javascript:
Ver original
  1. <script language="javascript" type="text/javascript">
  2.   function habil(){
  3.    document.formu.text1.disabled=false;
  4.   }
  5. </script>

En el input type="button" creo que también podría poner input type="image" para que está más a tu estilo si quieres. Saludos (: