I have a series of questions using radio buttons which consist of "OK" ,"Needed" and Not Applicable". I would like to change the color of the text based on which radio button is selected.
I would like the following: change the color of "Ok" to green if it is selected, red if "Needed" is selected, and leave "Not Applicable" in black.
I know how to use CSS to change the color of the text but not 3 different colors based on what radio button is actually selected. I am guessing I need to use Javascript here to enforce the logic.