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 5: | Line 5: | ||
$('#next').on('click', function(event){ | $('#next').on('click', function(event){ | ||
alert("Next!"); | alert("Next!"); | ||
$("input[name='pos']").val($("input[name='pos']").val( | var newPos = $("input[name='pos']").val()++; | ||
$("input[name='pos']").val(newPos); | |||
loadQuestion(); | loadQuestion(); | ||
}); | }); | ||
$('#back').on('click', function(event){ | $('#back').on('click', function(event){ |