我在链接上有一个测验
https://www.sanchetnaeducation.com/test-url/
提交基本详细信息后,我试图单击下一步按钮(PS:您可能输入一些垃圾值。只有所需的验证在那里)。
下一个按钮没有给出结果
JS代码是
jQuery('#next').click(function(e){
alert("Hello");
var active = items.filter(':visible:last');
active.hide();
//Example2.Timer.pause();
var op111 = "op1"+i;
var correct_op = "#correct"+i;
var c = jQuery(correct_op).val();
correct.push(c);
//One item checked with that name
if(jQuery("input:radio[name="+op111+"]:checked"))
var val = jQuery("input:radio[name="+op111+"]:checked").val();
else
var val = 0;
i=i+1;
console.log(val)
answers.push(val)
var next = active.next();
if (next.length){
next.show();
Example2.Timer.play();
}
else{
//console.log(correct);
Example2.Timer.stop();
jQuery("#next").hide();
jQuery("#thanks").show();
}
});