You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simple-yewu/frontend/web/assets/js/popUps.js

20 lines
629 B

5 years ago
$(function(){
$(".prompt").click(function(){
$(".model_wrap").show();
5 years ago
$(".jump").removeClass("unchoose");
$(".Previous").removeClass("unchoose");
$(".nextPage").removeClass("unchoose");
5 years ago
$(".content").eq(0).removeClass("unchoose");
5 years ago
});
$(".nextPage").click(function () {
$(".content").each(function (i,item) {
console.log(i);
console.log(item);
if(!$(this).eq(i).toggleClass("unchoose")){
$(this).eq(i).addClass("unchoose");
$(this).eq(i+1).removeClass("unchoose");
}
})
})
});