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)