I'm trying to make a quiz making and taking site. Currently you can input a quiz, questions, and answers. Now I'm trying to write the quiz taking part (any suggestions on how to do this would help!). I'm following the model here and my generated output file looks like this. Now, when I copy the code to its own file and run it, it runs correctly. It makes sure all questions are answered, and it will tell you for multiple questions which one is correct.
However when I load up the html raw generated javascript from the website itself, it only checks to see if you have answered one of the questions and not the other, and it only displays the results of one answer when you click finish. If you answer both questions wrong it only shows 1 answer as wrong instead of 2 (for my example).
Here is what my css looks like. Here is the html raw portion of the code.
I am just not sure why I am getting problems with javascript generated by @Html.Raw. If there is another way to write a quiz taker I am all ears as well.
Thanks.
edit:
Again, if I copy/paste code in its own file it works, but rendered from MVC it doesn't work.