I wanted to click on a pagination page, when entering the link the corresponding number would be activated:
$('.page-button').on('click', function(){
$('.page-button').removeClass('active');
$(this).addClass('active');
$('.cupom-cell').hide().delay(1000);
var key = $(this).attr('data-pageId');
// alert(key)
var pageInit = key*6;
// alert(pageInit);
for(i=pageInit;i<pageInit+6;i++){
$('#cupom-'+i).show()
}
})
for(i=0;i<6;i++){
$('#cupom-'+i).show()
}
Paging exactly like the style: link