Ver Mensaje Individual
  #11 (permalink)  
Antiguo 22/09/2012, 16:36
Avatar de fjrueda
fjrueda
 
Fecha de Ingreso: marzo-2008
Ubicación: Bucaramanga
Mensajes: 313
Antigüedad: 16 años, 1 mes
Puntos: 35
Respuesta: Pasar un registro de texfield a combobox

Osea, usted se refiere hacer algo asi :
Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. function seleccion(s, i)
  3. {
  4.    document.getElementById(i).value = s.value;
  5. }
  6. </head>
  7. <body>Seleccione algo :
  8. <select id="opt1" onChange="seleccion(this, 'rt1')">
  9.     <option value="uno">1</option>
  10.     <option value="dos">2</option>
  11.     <option value="tres">3</option>
  12.     <option value="cuatro">4</option>
  13. </select><br />
  14. Dato seleccionado :
  15. <input type="text" id='rt1' />
  16. </body>
  17. </html>

Pero que el dato seleccionado se guarde en el "hidden que tiene hay' ??, si no va tocar que me envie eso y lo miramos.