Using variables within a quiz
March 24, 2009 12:00 AM
Hi all,I just would like to start using variables… but I have no idea how to solve my problem I have a quiz with several questions.If the user chooses the right answer a ‘positive feedback’ is displayed.If the user chooses the wrong answer a ‘negative feedback’ is displayed.Both texts are placed one upon the other, set initially invisible.After selecting an answer, the user clicks a Check Button and the appropriate feedback is shown.My problem is, that if the user selects an answer, clicks ‘check’, selects another answer and clicks ‘check’ again, both feedback messages are displayed one upon the other.This means I need to clear the visible answer somehow before showing the other answer...Probably this is very easy to solve if you are familiar with variables…. But I am failing … Is there anybody who can help me?Thanks a lot....
Discussions have been disabled for this post