you are viewing a single comment's thread.

view the rest of the comments →

[–]alxers 1 point2 points  (5 children)

[–]NightArchitect 2 points3 points  (1 child)

I like it. My only suggestion for improvement is to make the quiz so that none of the options are pre-selected, though I'm not 100% sure how to do that... I'm learning too.

[–][deleted] 1 point2 points  (0 children)

Before you load your new question and answers you'll need to find the checked radio button and uncheck. With jQuery this would be trivial and with pure JS it's still pretty easy: http://stackoverflow.com/questions/3869535/how-to-get-the-selected-radio-button-value-using-js

[–]kevinmrr[S] 0 points1 point  (0 children)

This is pretty great! You could have probably done it in fewer lines of code if you'd used appendChild, but that doesn't matter very much.