Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/06/2010, 10:55
Avatar de Carlangueitor
Carlangueitor
Moderador ლ(ಠ益ಠლ)
 
Fecha de Ingreso: marzo-2008
Ubicación: México
Mensajes: 10.037
Antigüedad: 16 años, 6 meses
Puntos: 1329
Respuesta: Cajas de texto iguales

A ver si este te sirve:
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3.     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  4.     <title>Cajas Iguales</title>
  5.     <script type="text/javascript">
  6.         function igual() {
  7.             var ape1 = document.getElementById("ap1").value ;
  8.             document.getElementById("ap2").value = ape1 ;          
  9.             }
  10.     </script>
  11. </head>
  12.     <form id="iguales" method="post" action="#">
  13.         <input type="text" name="ap1" id="ap1" onkeyup="igual()" />
  14.         <input type="text" name="ap2" id="ap2"/>
  15.     </form>
  16.    
  17. </body>
  18. </html>

Saludos
__________________
Grupo Telegram Docker en Español