[Solved] how to make pagination like google only using javascript? [closed]


I created something like this a few years ago (https://github.com/johncobley/jQuery-Paging)

It needs a partial address to which it will add the page number and variables containing the current page number and total quantity of pages (I use a hidden input).

Call it using something like –

$(".paging").paging({
    url: "pageurl" + "?page=", //the actual number is added in the plugin
    currentPage: parseInt($("#currentPage").val()),
    pages: $("#pages").val(),
    float: "left"
});

$(".paging") in this case is an empty div.

It uses CSS classes from jQuery-UI and it appears something like –

First page

First page

Middle Page

Middle pages

2

solved how to make pagination like google only using javascript? [closed]