JQuery Pagination paging plug-in, jquerypagination

Source: Internet
Author: User

JQuery Pagination paging plug-in, jquerypagination
JQuery Pagination paging plug-in

Download DEMO

1. Introduction

This jQuery plug-in is an Ajax paging plug-in that can be loaded at one time. Therefore, there is no need to change the page type and delay.

2. Usage

1. Introduce the following js and css files

1 <link rel="stylesheet" href="pagination.css">2 <script type="text/javascript" src="jquery.min.js"></script>3 <script type="text/javascript" src="jquery.pagination.js"></script>

2. Add the following js Code to the head Tag:

1 $(".pagination").pagination(100, {2     callback: pageselectCallback,3      num_edge_entries: 1,4     });5 });
3. Parameters
Parameter Name Description Parameter Value
Callback Click the callback function of the paging button. Function () {return false ;}
Current_page Page number selected during initialization 0 by default indicates 1st pages
Items_per_page Number of records per page The default value is 10.
Link_to Paging Link The default value is "#".
Num_display_entries Maximum number of pages displayed The default value is 11.
Next_text Text displayed on the "Next" button The default value is "Next"
Prev_text Text displayed by the button on the previous page The default value is "Previous"
Next_show_always The next page is displayed only when the page number can be added. The default value is "true ".
Prev_show_always The previous page button is displayed only when you can navigate to the previous page. The default value is "true ".
Num_edge_entries Number of entries on both sides of the page The default value is 0.
Ellipse_text The identifier string from the current page segment to the home page or the last page. The default value is "..."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.