Son KwonNam wrote on 11 jan 2006 in comp.lang.javas cript:
When there a two forms like the follosings,
<form name="source">
<input name="a..." value=".." ..>
<input name="a..." value=".." ..>
<input name="a..." value=".." ..>
<input name="a..." value=".." ..>
</form>
<form name="target" />
As you see target form has no child elements and source form has *a
lot* of elements.
Is this possbile to copy entire objects of source form to target form?
(I don't mean copying filed by field)
<div id='container1' >
Here:
<form name="mySource" >
<input name="a" value=".." ><br>
<input name="b" value=".." ><br>
<input name="c" value=".." ><br>
<input name="d" value=".." >
</form>
</div>
<div id='container2' >
</div>
<script type="text/JavaScript">
var c1 = document.getEle mentById('conta iner1')
var c2 = document.getEle mentById('conta iner2')
c2.innerHTML = c1.innerHTML.re place('mySource ','myTarget')
</script>
This does not work if you delete the text "Here:".
Why ????
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)