ARTICLE AD BOX
I have a quiz with 5 questions with a couple of answers you can choose from each, it's always single choice, so you will have 5 variables in the end, one per question q1="",q2="", ... q3, q4, q5
But 2 answers of 2 different questions can actually lead to the same personality type. For example nice people might choose certain answers across all 5 questions. So I don't want q1,q2,q3,q4,q5, but I want a variable to increase like var open-minded = ++; every time an answer is selected across different questions, that represents an open mindset.
However the problem I have is, that I don't know how to do that, because someone might reconsider and click another button, click around, be non-decisive. And I don't know how to clear the previous input, because I am not keeping track of what's been selected before to substract it again???
So I thought maybe you can count afterwards, how many of the q1,q2,q3,q4,q5 = equal "open-minded" as a value? Can you do that? Can you like count how many of those variables have the same value? How do you do that when you try to count 10 different personality traits across 5 different questions??? I am confused.
Please no arrays btw, they confuse me, I can't learn them now. Also I prefer answers that tell me in Jquery, not pure Javascript.
Thank you so much for any help
