I have a simple HTML and JavaScript quiz that displays “Correct” or “Nice try” and some feedback text each time a user selects a radio button answer.
Now I am wanting to expand the functionality by adding an answer tracker, which will display an image that signifies “correct” or “incorrect” to the user. A live example of this can be found on the National Geographic Kids website.
I would also like to add an incremental numerical score that will be hidden from the user and stored in a HTML hidden form field after the user has answered the final question in the quiz. This value will be saved when the form is submitted and displayed on the completion page.
The existing quiz can be viewed here: Kids quiz
My work in progress CodePen can be viewed here: Simple quiz
Any assistance, suggestions, or tips would be greatly appreciated.