code: function copyValues(origin, clone, elementSelector) {
          var $originalElements = origin.find(elementSelector);
  
          clone.find(elementSelector).each(function(index, item) {
              $(item).val($originalElements.eq(index).val());
          });
      }
docs: Copies values from origin to clone for passed in elementSelector