I simply want one more clone on each click. Did i miss something obvious_ Thanks
Script:
$(function(){
$('input').click(function(){
$('.cloneitem').clone().appendTo('#container');
});
});
HTML:
<input type="button" value="clone it"/>
<div id="container"></div>
<div class="cloneitem">clone</div>
Try this http://jsfiddle.net/p57hm/1/
Currently you are cloning all the elements that have the class
.cloneitembut you only want 1 at a time, so you don’t want to select all the.cloneItembut just the first one, and clone that one.