i have a parent div with 10 divs and other controls as childrens.. now i've a button which is used to create another parentdiv with all childrens. how can i insert the similar code on each click like
<div id=parentdiv> <div id=child1> <div id=child2> ...... <div id=child10> </div> -----the button click should insert the same thing <input type=button id='btn'> $("#btn").click(function(){ ???.insertAfter($("parentdiv")); }); how can i do that? thanx