Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/10/2005, 07:01
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 8 meses
Puntos: 5
tienes que recuperar el objeto utilizando "document.getElementById("")"

var otro_input = document.getElementById("otro_input");
var codigo = document.getElementById("codigo");

otro_input.value = codigo.value;

Nota: los inputs deben tener la propiedad "ID" para poder hacerles referencia. con respecto al div, eso no tiene nada que ver si está dentro o no.... tu lo puedes obtener de todas formas. si utilizas el form bueno ahi si depende... pero con el div no....
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.