I have two divs on my website. They both share the same css properties, but one of them holds 24 other divs. I want all of these 24 divs to be copied into the other div. Thi
You can use the .ready() event of jquery
jQuery(document).ready(function() { jQuery('.div1').html(jQuery("#div2").html()); }
Also a working DEMO.