Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

you can keep the question part empty. I will put questions. Don't bother wasting time on that.

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions