I have <input type="text" name="unit_of_measure"
value="Each">, so when the form is first displayed, each is
predisplayed in the unit of measure field. If I input a value for
single qty, the unit of measure each is unchanged and written to
the database.
If I input a value into the multiple lots qty, I want the
unit of measure to be replaced by Lots, in the unit of measure
field, before the form is submitted.
I know the unit of measure can be determined after the form
is submitted, but I need it to display on the form before it is
submitted, if possible.