anchor.diff:        var next_selects = getRowSelects(next_tr);
   
         current_inputs.each(function(i) {
  -        next_inputs.eq(i).val($(this).val());
  +        var input = next_inputs.eq(i);
  +        input.val($(this).val());
  +        // trigger autosize JQuery plugin to adapt to new content
  +        input.trigger('autosize.resize');
         });
         current_selects.each(function(i) {
           // var current_option = $(this).find('option:selected').index();
  
positive.code:       var inputs = getRowInputs($row);
        var selects = getRowSelects($row);
        inputs.val('');
        selects.prop('selectedIndex', 0);
      }
  
  
negative.code: <script>
    $( document ).ready(function() {
      function getRowInputs($row) {
        return $row.find('input:not([type=hidden]), textarea').not('.hidden');
      }
  
      function getRowSelects($row) {
  