Question: Create a simple web page that contains a JavaScript form that will allow the user to answer 7 trivia questions. Your trivia game should contain:

Create a simple web page that contains a JavaScript form that will allow the user to answer 7 trivia questions.

Your trivia game should contain:

  • 2 text boxes
  • 2 select dropdowns (4 options min)
  • 2 multiple choice questions (using radio buttons, 4 options min)
  • 1 choose-all-that-apply (checkboxes, 4 options min, one answer should be "None of the above"). No part-points for semi-correct answers.

The questions can cover any topic you wish - but please keep it professional and easy enough that the average person could get a few correct.

Before the user is allowed to calculate and display their final score on the screen, ensure that they have filled out all of the fields or made a selection choice in all of the questions. You might want to consider disabling the button or perhaps you would rather prevent the display of the results using your program logic. Without using an alert(), prompt(), or confirm() or console.log, make sure the user is aware of any issues in the form. These messages should be cleared when the user fixes them.

Use common-sense / real-world validation for your form. (Do not allow empty fields, if numeric only, if letters only, ensure at least one item is checked in each group, these are just some examples). For your button, ensure to use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!