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 46: | Line 46: | ||
$("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(0); | ||
$('#next').css('visibility','visible'); | $('#next').css('visibility','visible'); | ||
}); | }); | ||
Line 82: | Line 82: | ||
alert($("input[name='pos']").val()); | alert($("input[name='pos']").val()); | ||
var Questions = $("input[name='stash']").val().split(","); | var Questions = $("input[name='stash']").val().split(","); | ||
var name = Questions[$("input[name='pos']").val()]; | var name = Questions[parseInt($("input[name='pos']").val())-1]; | ||
$.ajaxSetup({async: false}); | $.ajaxSetup({async: false}); | ||
var right = " "; | var right = " "; |