Hi. I am need of assistance regarding dynamic form validation with Javascript. I am trying to create a quiz using Javascript. I have three questions with three radio button answer choices each. I have made it so that each question appears individually with their corresponding radio button answer choices at random times. I originally tried to make the radio buttons in the HTML code, but I was having a hard time trying to display one question at a time with their answer choices in a random order. Then, I was able to create these radio buttons in the Javascript Code, inserting it into a Switch statement. The case consists of random numbers 1 to 3. Each case shows a different question and its answer choices. I now need to validate these radio buttons to see if the user has submitted the form without selecting the answer, and then check to see if the answer they have chosen is the correct.

I am new to programming, so can anyone please suggest what I should do?