DEV Community

John Ellee Robado
John Ellee Robado

Posted on

2 1

Pagination using AJAX and jQuery

Create a javascript file let say pagination.js

https://dev-to-uploads.s3.amazonaws.com/i/jf19thvskq3fxczkc4uz.PNG

Inside your page called notes.php, write this JavaScript code on the bottom

https://dev-to-uploads.s3.amazonaws.com/i/xyqamzvh22tj1tcitdh5.PNG

Now, this is the load_notes.php back end for AJAX

https://dev-to-uploads.s3.amazonaws.com/i/0ev6w1ikdr43m7mg7563.PNG

Summary

pagination(url,div_id,table_id,trigger,offset,limit) is to pagination('load_notes.php','load_here','notes','load_pagination','0','15')

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay