I have 3 form fields
div {
padding: 5px;
margin: 10px auto;
}
input {
padding: 3px 5px;
}
<div>Ingredient Unit Price:<input class="form-control" type="text" name="flt_IngredientUnitPrice" id="flt_IngredientUnitPrice"></div>
<div>Portions in Item:<input class="form-control" type="text" name="num_IngredientPortion" id="num_IngredientPortion"></div>
<div>Ingredient Portion Price:<input class="form-control" type="text" name="flt_IngredientPortionPrice" id="flt_IngredientPortionPrice"></div>
Once there is data in flt_IngredientUnitPrice & num_IngredientPortion I need the value of flt_IngredientPortionPrice to automatically get filled with the value of flt_IngredientUnitPrice/num_IngredientPortion.
Presumably I can do this with an onclick event but not sure how