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 683: Line 683:
function answerClicked(event) {
function answerClicked(event) {
$(".answer").removeClass("boxed");
$(".answer").removeClass("boxed");
$('input[type=radio]').prop('checked', function () {
 
return this.getAttribute('checked') == 'checked';
});
$(event.currentTarget).addClass("boxed");
$(event.currentTarget).addClass("boxed");
$(event.currentTarget.firstChild).prop("checked", true);
$(event.currentTarget.firstChild).prop("checked", true);

Revision as of 16:17, 27 June 2014