Hi friends,

I made an multiple choice question like this…..

<h3>what is your favorite color ?</h3>
<input type="radio" name="colors" value="correct !" id="myRadio">Red<br>
<input type="radio" name="colors" value="try again" id="myRadio">blue<br>
<input type="radio" name="colors" value="try again" id="myRadio">green<br>
<input type="radio" name="colors" value="try again" id="myRadio">black<br>
</form>

I want to display on screen only one question each time.
Once the user sign the radio (there is no different button here), it should immediately show a massage under the question (e.g. – "correct !" or "try again").

How can I create a function like this in JS ?

I will appreciate your help,

Benny