anchor.diff:      var newRow   = ingredientTable.find('tr:first').clone();
       var newRowId = ingredientTable.find('tr').length;
       var newId   = `recipe_recipe_ingredients_attributes_${newRowId}_`;
  -    var newName = `recipe_ingredients_attributes][${newRowId}]`;
  +    var newName = `recipe[recipe_ingredients_attributes][${newRowId}]`;
   
       // These are the attributes that need to be edited when cloning a table row.
       // The index values need updating to a new, unique, value -
  
positive.code:     //   selected="selected"
      //   value='4'
  
      newRow[0].removeAttribute('id');
  
      var selectElems = newRow.find('select');
      selectElems[0].setAttribute('name', newName + '[ingredient_id]');
  
negative.code:     });
  
      ingredientTable.append(newRow);
  console.log(ingredientTable.html());
      e.preventDefault();
    }
  
  