rakky

HTML

<div id="all">
  <div>
    <label>text</label>
    <input type="text">
    <button class="js-add">add</button>
    <button class="js-remove">remove</button>
  </div> 
</div>

JavaScript

$(document).ready(function() {

  var allContainer = $('#all');
  var code = `<div><label>text</label><input type="text"><button class="js-add">add</button><button class="js-remove">remove</button></div>`;
  
  $('.js-add').on('click', function() {
    allContainer.append(code);
  });


  $('.js-remove').on('click', function() {
    var $this = $(this);
    $this.parent().remove();
  });
});