Ver Mensaje Individual
  #8 (permalink)  
Antiguo 04/03/2010, 13:37
Avatar de Fernand0
Fernand0
 
Fecha de Ingreso: septiembre-2005
Ubicación: Buenos Aires
Mensajes: 610
Antigüedad: 18 años, 8 meses
Puntos: 19
Respuesta: ayuda con function

Código HTML:
Ver original
  1. <script type="text/javascript">
  2. function asignarValor(c1,c2){
  3.  
  4.    campo1 = document.getElementById(c1);
  5.  
  6.    campo2 = document.getElementById(c2);
  7.  
  8.    campo2.value = campo1.value;
  9.  
  10.    alert("HOLA");
  11. }
  12.  
  13. <input type="text" id="Ds_Nombre" onchange="asignarValor('Ds_Nombre','nombre');"/>
  14. <input type="text" id="nombre" value="">

a mi me anda..