$ ( "# paginationDiv" ) .bs_pagination ({ currentPage: pageNo, // current page rowsPerPage: pageSize, // page shows the number of totalRows: data.totalRows, // total number of TotalPages: TotalPages, // total number of pages visiblePageLinks: 2, // number of cards page number can display up to the showGoToPage: to true , // whether to jump to the first few pages showRowsPerPage: to true , // whether to display the page shows how many showRowsInfo: to true , // whether to show pagination information onChangePage: function (E, pageObj) { // returns page_num and rows_per_page after a link has clicked queryActivityForPageByCondition(pageObj.currentPage,pageObj.rowsPerPage); } });