Widget:SandboxNew: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
selectExam(); | selectExam(); | ||
$('#next').on('click', function(event){ | $('#next').on('click', function(event){ | ||
alert(" | alert($("input[name='pos']").val()); | ||
var newPos = $("input[name='pos']").val()+ | var newPos = $("input[name='pos']").val() + 1; | ||
$("input[name='pos']").val(newPos); | $("input[name='pos']").val(newPos); | ||
loadQuestion(); | loadQuestion(); | ||
Line 44: | Line 44: | ||
$("input[name='results'").val($("input[name='pos']").val() + "false,"); | $("input[name='results'").val($("input[name='pos']").val() + "false,"); | ||
} | } | ||
$("input[name='pos']").val( | $("input[name='pos']").val(1); | ||
$('#next').css('visibility','visible'); | $('#next').css('visibility','visible'); | ||
}); | }); |