diff --git a/frontend/web/assets/js/popUps.js b/frontend/web/assets/js/popUps.js index 50a3620..acdc966 100644 --- a/frontend/web/assets/js/popUps.js +++ b/frontend/web/assets/js/popUps.js @@ -8,7 +8,9 @@ $(function(){ $(".model-bg").each(function (i,item) { var _that=$(this); _that.find(".nextPage").click(function () { - _that.addClass("unchoose").eq(i+1).removeClass("unchoose"); + _that.addClass("unchoose"); + _that.eq(i+1).removeClass("unchoose"); + console.log(i); console.log(i+1); console.log(item); })