Holen Sie sich alle Elemente in ein bestimmtes div und zeigen Sie dasselbe in anderen div an. Der Inhalt ist dynamisch. Ich möchte innerhalb dhKlonen Sie alle Elemente und Inhalte innerhalb von div und zeigen Sie sie in einem anderen div an.
<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>
so dass 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
Richtig, und wie das funktioniert aus? – Utkanos
aber es klont auch das Div 'div_preview' ich will Inhalt in ID = 'div_preview' – Ron