Doubts JQuery pagination

0

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

    
asked by anonymous 02.04.2018 / 19:03

0 answers