For more information see projet homepage
Dynamic content here.
$('.demo1').bootpag({ total: 5 }).on("page", function(event, num){ $(".content").html("Page " + num); // or some ajax content loading... // ... after content load -> change total to 10 $(this).bootpag({total: 10, maxVisible: 10}); });
Dynamic content here.
$('.demo2').bootpag({ total: 23, page: 3, maxVisible: 10 }).on('page', function(event, num){ $(".content2").html("Page " + num); // or some ajax content loading... });
"#pro-page-{{number}}"
.Dynamic content here.
$('.demo3').bootpag({ total: 9, page: 5, maxVisible: 6, href: "#pro-page-{{number}}", leaps: false, next: 'next', prev: null }).on('page', function(event, num){ $(".content3").html("Page " + num); // or some ajax content loading... });
Dynamic content here.
$('.demo4_top,.demo4_bottom').bootpag({ total: 50, page: 2, maxVisible: 5, leaps: true, firstLastUse: true, first: '', last: ' ', wrapClass: 'pagination', activeClass: 'active', disabledClass: 'disabled', nextClass: 'next', prevClass: 'prev', lastClass: 'last', firstClass: 'first' }).on("page", function(event, num){ $(".content4").html("Page " + num); // or some ajax content loading... });