I am trying to clone divs and append them into container divs. The solution i have works fine in Chrome but does not run at all in IE. I have tried researching this and even asked about this problem but couldnt really find a working solution. Does anyone have any suggestion? This is what I have so far
The html looks somewhat like this
<div class="holdOne"></div>
<div class="holdTwo"></div>
<div class="holdThree"></div>
<div class="productHolder">
<div class="product"></div>
<div class="product"></div>
<div class="product"></div>
<div class="product"></div>
<div class="product"></div>
<div class="product"></div>
</div>
jquery
$(function() {
$('.productHolder .product').eq(0).clone().appendTo('.holdOne');
$('.productHolder .product').eq(1).clone().appendTo('.holdOne');
$('.productHolder .product').eq(2).clone().appendTo('.holdOne');
$('.productHolder .product').eq(1).clone().appendTo('.holdTwo');
$('.productHolder .product').eq(2).clone().appendTo('.holdTwo');
$('.productHolder .product').eq(3).clone().appendTo('.holdTwo');
$('.productHolder .product').eq(0).clone().appendTo('.holdThree');
$('.productHolder .product').eq(5).clone().appendTo('.holdThree');
$('.productHolder .product').eq(4).clone().appendTo('.holdThree');
});