Hi there, I have created a web form with the following fields laid out as below:
Field 1a and Field 1b
Field 2a and Field 2b
Field 3a and Field 3b.
The user will fill in those fields with numbers to show how many pieces of information they have received and the total they asked for e.g.
5 of 6 (they received 5 bits of info of the 6 they asked for)
6 of 7
8 of 8
What I need is some javascript to give an error message if the user enters a higher number into Field a than Field b.
e.g. if the user enters 6 of 5, an error message should come up.
I am a complete novice when it comes to javascript, and I would be very grateful for any help any of you could give.
Many thanks,
Katie
Field 1a and Field 1b
Field 2a and Field 2b
Field 3a and Field 3b.
The user will fill in those fields with numbers to show how many pieces of information they have received and the total they asked for e.g.
5 of 6 (they received 5 bits of info of the 6 they asked for)
6 of 7
8 of 8
What I need is some javascript to give an error message if the user enters a higher number into Field a than Field b.
e.g. if the user enters 6 of 5, an error message should come up.
I am a complete novice when it comes to javascript, and I would be very grateful for any help any of you could give.
Many thanks,
Katie