$('.add').click(function(e){ e.preventDefault(); var lastRepeatingGroup = $('.repeating').last(); var cloned = lastRepeatingGroup.clone(true) cloned.insertAfter(lastRepeatingGroup); });