I need three functions that interact with the recipe fields, each associated with a button.
clearFields: this would delete all the data in the recipe fields, and would be associated with a clear button
saveFields: this would get all the data in the fields, create a recipe object and pass it to the db (granted that it doesn't already exist), and is associated with the add button
fillFields: this would clear all the fields, then fill them with the data from a given recipe, and would be associated with each button in the recipe table
I need three functions that interact with the recipe fields, each associated with a button. clearFields: this would delete all the data in the recipe fields, and would be associated with a clear button saveFields: this would get all the data in the fields, create a recipe object and pass it to the db (granted that it doesn't already exist), and is associated with the add button fillFields: this would clear all the fields, then fill them with the data from a given recipe, and would be associated with each button in the recipe table