Prevent user entering a number into a 2nd field that is larger than the 1st field
I have a very simple form containing 2 fields:
target_amount and donated_amount
These two fields are the basis for a calculation that stretches an image to simulate a thermometer.
I need to prevent a user entering a number into donated_amount that is larger than the one entered into target_amount.
I would assume this can be done using client side validation. However, I can't find out how to do that.
Can anyone help please.