I am currently learning javascript and am trying to make a quiz in javascript with radiobuttons by following the example provided in javascript_source.I am right now stuck in a situation where i would like the selected radiobuttons label color to be changed to red or green based on the answer selected.
I have put my code in jsfiddle , i am able to get it to work in ny browser, but i dont know why it doesnt seem to work in jsfiddle, the basic idea is the same , only i would like to change the color of the selected radio button label based on correct or wrong.
Any help regarding this would be grateful
**EDIT *
jsfiddle now works thanks to the comments below
Fixed it, http://jsfiddle.net/aEeKt/8/. What I did was just add to get the parent
<li>and add a.corrector.incorrectclass to it depending on the answer.HTML
Javascript
CSS