Is it possible to Paginate a table using jquery?

后端 未结 8 925
梦毁少年i
梦毁少年i 2020-12-16 00:55

Consider my table with ten rows and I want to show first three rows in page1 and so on... How to paginate a table using jquery? Any good plugin....

8条回答
  •  暖寄归人
    2020-12-16 01:03

    I think easiest is datatables. Link: http://www.datatables.net/ using "paging: true"

    So code would be something like:

            $('#your-table').dataTable({
                "scrollY": "350px",
                "scrollCollapse": true,
                "bSort": false,
                "paging": true
            });
    

提交回复
热议问题