How can i copy 1 div element with 3 child elements in it,for like 12 times with javascript.Here is what i have done and it isn't working...
$(document).ready(function(){
for (var i=1;i<12;i++){
document.getElementByClassName("food-content").innerHTML +=
"<div class='food-group'><a>Link " + i + "</a></div>";
}
});
And here is my HTML elements which i want to copy.
<div class="food-col1">
<div class="food-group">
<a>Убвец!<img src="http://image.prntscr.com/image/4b52e3e1db8f43cfb2f7c9829f4bebde.png"></a>
</div>
</div>