I'm trying to make a simple javascript so that I have 10 textforms.
5
then
5 more
I'm trying to make it so when you click a button, it checks to see if the sum of the #s you put in the top 5 forms equal the sum of the #s in the bottom 5 forms, and if so, it writes "Yes" in an 11th text form.
I've gotten it pretty far so that if you have something like this:
form1 says 2
form2 says 2
---
form1 says 2
form2 says 2
Click the button, it will say "Yes" in the 11th form.
However, it refuses to work if I did something like this:
form1 says 3
form2 says 1
form3 says 4
---
form1 says 3
form2 says 2
form3 says 3
If I have it like that, then click the button, nothing happens. It can't recognize that 2+3 = 1+4
How do I get it to recognize this?
5
then
5 more
I'm trying to make it so when you click a button, it checks to see if the sum of the #s you put in the top 5 forms equal the sum of the #s in the bottom 5 forms, and if so, it writes "Yes" in an 11th text form.
I've gotten it pretty far so that if you have something like this:
form1 says 2
form2 says 2
---
form1 says 2
form2 says 2
Click the button, it will say "Yes" in the 11th form.
However, it refuses to work if I did something like this:
form1 says 3
form2 says 1
form3 says 4
---
form1 says 3
form2 says 2
form3 says 3
If I have it like that, then click the button, nothing happens. It can't recognize that 2+3 = 1+4
How do I get it to recognize this?
/ laugh at PosterX / GroupOfPeopleY who thought / believed *insert though/belief here*"
Comment