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 7: | Line 7: | ||
var Q = document.getElementById('question'); | var Q = document.getElementById('question'); | ||
Q.innerHTML = ""; | Q.innerHTML = ""; | ||
var newPos = $("input[name='pos']").val() + 1; | var newPos = parseInt($("input[name='pos']").val()) + 1; | ||
$("input[name='pos']").val(newPos); | $("input[name='pos']").val(newPos); | ||
loadQuestion(); | loadQuestion(); |