Simple way
var cloneCount = 1; $("button").click(function(){ $("#id").clone().attr('id', 'id'+ cloneCount++).insertAfter("#id"); });
A more complicated way is below…
CLICK TO CLONE