获取特定div内的所有元素并将其显示为与其他div相同。 里面的内容是动态的。 我想克隆的所有元素中 即克隆div内的所有元素和内容并将其显示到另一个div中
<div id="div_preview">
<br>
2 php Developer ?<br>
<input type="checkbox" name="chk_0" value="a">
a
<input type="checkbox" name="chk_1" value="b">
b
<input type="checkbox" name="chk_2" value="c">
c
</div>
from <div id="div_preview"> and display it to <div id='other_div'></div>
使O/P
<br>
2 php Developer ?<br>
<input type="checkbox" name="chk_0" value="a">
a
<input type="checkbox" name="chk_1" value="b">
b
<input type="checkbox" name="chk_2" value="c">
c
'jQuery.clone()appendTo(TARGET_ELEMENT)' – Rayon
对了,是不是这样工作了? – Utkanos
,但它也将克隆div'div_preview'我想要内容id ='div_preview' – Ron