我们使用带有进度条的多步骤表单。出于某种原因,在第一次单击按钮后,进度条不会将 class="active" 添加到第 2 步,而是直接跳到第 5 步。
你能看到我的错误吗?
$(".next").click(function() {
if (animating) return false;
animating = true;
current_fs = $(this).parent();
next_fs = $(this).parent().next();
//activate next step on progressbar using the index of next_fs
$("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active");
使用的页面:https ://quiz.purevisionmethod.com/app/blurry-vision/
谢谢你的帮助!