I want to check total price and receiving price of user input which receiving price shouldn't be more than total price.
say example, in html file, I do have 3 input box. box A getting value of total price, box B getting value of receiving payment through card and box C getting value of receiving payment by cash. box B + box C should not greater than box A. I need to validate it and stop submitting it.
if A >= B+C : allowing to submit the form
if A < B+C : Should not allow to submit form, need to show error message like "Receiving value is more than Total Value"
It may very simple, since I am new to JS I posting it here.