Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/12/2010, 09:34
Avatar de raxper
raxper
 
Fecha de Ingreso: enero-2010
Ubicación: ------
Mensajes: 472
Antigüedad: 14 años, 3 meses
Puntos: 2
Pasar formulario a un DIV

¿Cómo haría esto?

Pasar formulario completo a un ¿ DIV ?, sin duplicar el formulario en un ID

Código Javascript:
Ver original
  1. <div id='principal'></div>
  2.  
  3. <script>function pasar(p){document.getElementById('principal').innerHTML = "Formulario completo que pase a Div = 'Principal'";} </script>
  4.  
  5. <div style="position:absolute; top:30%; right:40%;"><form id="formulario" name="frm" onkeyup="pasar(this)"><input type="text" value="" /><input type="button" value="Botón" /></form></div>
__________________
/^sleep:\/\//;