Widget:Sandbox: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 682: | Line 682: | ||
} | } | ||
function answerClicked(event) { | function answerClicked(event) { | ||
$(".answer").removeClass("boxed"); | $(".answer").removeClass("boxed"); | ||
$('input[type=radio]').prop('checked', function () { | $('input[type=radio]').prop('checked', function () { | ||
Line 688: | Line 687: | ||
}); | }); | ||
event.currentTarget.addClass("boxed"); | event.currentTarget.addClass("boxed"); | ||
event.currentTarget.prop("checked", true); | event.currentTarget.firstChild.prop("checked", true); | ||
if ($("#exam").find('#submit').length == 0) { | if ($("#exam").find('#submit').length == 0) { | ||
$("#examSpace").append("<div class='noSelect WBRButton' id='submit'><br />Submit</div>"); | $("#examSpace").append("<div class='noSelect WBRButton' id='submit'><br />Submit</div>"); |