Javascript onclick populate form field

5 days ago 8
ARTICLE AD BOX

I have 3 form fields

Ingredient Unit Price:<input class="form-control" type="text" name="flt_IngredientUnitPrice" id="flt_IngredientUnitPrice"> Portions in Item:<input class="form-control" type="text" name="num_IngredientPortion" id="num_IngredientPortion"> Ingredient Portion Price:<input class="form-control" type="text" name="flt_IngredientPortionPrice" id="flt_IngredientPortionPrice">

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

Read Entire Article