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