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 530: | Line 530: | ||
}); | }); | ||
$("div.answer").click(exam, answerClicked); | $("div.answer").click(exam, answerClicked); | ||
} | } | ||
} | } | ||
Line 629: | Line 627: | ||
function answerClicked(event){ | function answerClicked(event){ | ||
$(this).addClass("boxed"); | $(this).addClass("boxed"); | ||
console.log($(this).children()); | console.log($(this).children()); | ||
if($("#submit").length == 0){ | |||
$("examSpace").append("<div class='noSelect WBRButton' id='submit'><br />Submit</div>"); | |||
$("#submit").click(event, answerSubmitted); | |||
} | |||
} | } | ||
function answerSubmitted(event) { | function answerSubmitted(event) { |