Hi friends
I am trying to design a simple word quiz game. I successfully displayed a random word as the question by using array and ajax. Then I want the user to type the same word in the answer text box as a practice. If correct, a simple game will be shown for a short time before the user continues the quiz study. However, when I set the condition as answer.text = question.text (which is the randomly displayed word from the array), the action won't be triggered even if I type in the displayed word. In comparison, if I manually typed in a word and make it the "set text" of the answer text box, it works well. Sorry for the lengthy question. The image might make it more clear. It seems the randomed displayed word was not recognized as a value. Thank you and I appreciate your time and help!