rachelktyjohnson / hktbf22-quiz-app

See the live version here: https://rachelktyjohnson.github.io/hktbf22-quiz-app
1 stars 7 forks source link

Enable/Disable "Next" button where appropriate #3

Closed rachelktyjohnson closed 2 years ago

rachelktyjohnson commented 2 years ago

You can't skip questions!

You must be assigned this issue in order for your Pull Request to be accepted and merged. Please refer to "How to claim an Issue here: https://github.com/rachelktyjohnson/hktbf22-quiz-app/blob/master/CONTRIBUTING.md#how-to-claim-an-issue

Oh dear, it looks like the "Next" button allows quiz-takers to move to the next question before answering the current one! We can't have that. Your task for this issue is to:

  1. Disable the "Next" button if an answer hasn't been selected
  2. Enable the "Next" button when an answer has been selected and users can move forward
  3. Disable the "Next" button once again when the next question loads

There are many ways to do this, but our suggestion is to focus only on the question.js file.

jajablinky commented 2 years ago

i would like to do this one :)