I am trying to create a quiz in an e-learning module. There are multiple choice questions with the answers displayed next to radio buttons. When the correct radio button is selected I would like an element to appear on the screen. I've tried different codes for checking if a radio button is selected but no luck so far. This is my latest code:
sym.$('Text1').html('<form><input type="radio" name="sex" id="man" value="male">Male<br><br><input type="radio" name="sex" id="woman" value="female">Female</form>');
if ($('#man:checked').val() == 'true') {
sym.$('Ellipse').show();
}