How to validate and also check quiz using Javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to validate and also check quiz using Javascript?

I'm working on a quiz form where I used "required" of html but it is not working and I'm using js for validation but how to check ans at same time? After clicking "submit button" I can do only one function. https://code.sololearn.com/Wf6rQQJztw22/?ref=app

23rd Jul 2022, 9:25 AM
Utkarsh Meshram
Utkarsh Meshram - avatar
3 Answers
+ 1
Post your code so we can see what is heppening.
23rd Jul 2022, 9:39 AM
PanicS
PanicS - avatar
+ 1
The form is not processed because of the onclick on the submit button. Removed the onclick="check()" Line 169
23rd Jul 2022, 10:47 AM
Roland
Roland - avatar
0
Now I posted code see. Tell if you can help me with this.
23rd Jul 2022, 10:28 AM
Utkarsh Meshram
Utkarsh Meshram - avatar