Hi All,
Currently i am working on one jquery plugin. below is the plugin. http://www.jqueryscript.net/other/Easy-Any-Content-Pagination-Plugin-jQuery-Paginate-js.html
using above plugin i have generated the dynamic list of ul using below code.
- function FetchData() {
- $.ajax({
- ......
- success: function (r) {
- $.each(JSON.parse(data), function (key, result) {
- // appending data in ul.
- }
- });
- Called Another function for pagination which is as per above plugin.
- SetPaginate();
- }
- });}
- function SetPaginate() {
- $('#locationdata').paginate({
- perPage: 20,
- autoScroll: true,
- //paginatePosition: ['bottom'],
- useHashLocation: true
- });
- }
- ////below is my page design
- class="DivwithScroll" id="divresultdata">
- 'example'
- //Currently data pager is appering here as per plugin.
- "datapager">
- // I Want to add it pager here instead of example which is comes after Ul.
- /// Css