S
silencer116
Hey everyone.
I would like to create somekind of personality test with javascript,
with the use of radio buttons, but i also want to use a variable which
is the total score along the questions.
I mean like, i have some questions
Question 1
Answer A (2 points)
Answer B (3 points)
Answer C (1 points)
Question 2
Answer A (5 points)
Answer B (1 point)
Answer C (3 points)
Question 3
Answer A (4 points)
Answer B (3 points)
Answer C (2 points)
But i would like to have the variable (lets call it "Total") as its
main points system. So like if you would choose Answer B in Question 1,
the Total Score (variable Total) would be:
Total = Total + 3
This means you get 3 points for that question. I would like this for
every question, and so a checking option, that checks wheter all
questions are done. At the bottom i would like a button, that activates
a MsgBox or something, depending on what Total is.
Like, after all questions are done, Total does the rest. if you have
like between 10 and 15 points, i want a different message than when you
have below 10 points.
I hope you guys understand what i mean my english is kinda bad
today..
I would like to create somekind of personality test with javascript,
with the use of radio buttons, but i also want to use a variable which
is the total score along the questions.
I mean like, i have some questions
Question 1
Answer A (2 points)
Answer B (3 points)
Answer C (1 points)
Question 2
Answer A (5 points)
Answer B (1 point)
Answer C (3 points)
Question 3
Answer A (4 points)
Answer B (3 points)
Answer C (2 points)
But i would like to have the variable (lets call it "Total") as its
main points system. So like if you would choose Answer B in Question 1,
the Total Score (variable Total) would be:
Total = Total + 3
This means you get 3 points for that question. I would like this for
every question, and so a checking option, that checks wheter all
questions are done. At the bottom i would like a button, that activates
a MsgBox or something, depending on what Total is.
Like, after all questions are done, Total does the rest. if you have
like between 10 and 15 points, i want a different message than when you
have below 10 points.
I hope you guys understand what i mean my english is kinda bad
today..