|
Hi there,
I'm wanting to compare the values of 2 input fields to see if they are equal in a form. It involves a timesheets project, and basically I want to compare 1 input field (field A) and see if it is equal to the sum of fields B, C and D together. I can do all of this with PHP but my only problem is I need this to happen on-the-fly, with Ajax or JavaScript. So if field A != (B + C + D) then it will display an error and not let you submit the form, but if A == (B + C +D) then you can submit the form.
Thanks in advance!
|