Is it possible to paginate table with jQuery without plugins? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Is it possible to paginate table with jQuery without plugins?

Does jQuery plugins make things like pagination which is impossible to create with jQuery itself? Or is it just used for easier and time-saving task? I wonder if is it possible to have pagination with table using pure jQuery without the help of plugins. Also, I want to learn how to make it manually without plugins because there might be time where your instructor/boss/client/whoever would like to change from the dataTable and for me with plugins, you can't change the behaviour of it.

25th Aug 2018, 12:58 AM
Email Not Activated
4 Answers
+ 11
Those are for lazy people. It's not even that difficulty. Try to create everything with pure language.
25th Aug 2018, 1:38 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
Yes. Pure javascript would be even better.
26th Aug 2018, 9:18 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
Yeah, that's the reason why I want to learn manually rather than using plugins because it doesn't help me learn and how the codes work with a particular plugins. But does all plugins can be made with pure jQuery? Toni Isotalo
25th Aug 2018, 1:59 AM
Email Not Activated
+ 4
Sleepy Koala one way would be to populate your table dynamically. Create an array of your items and loop through that. Take a look at the function slice(). Usage myArray.slice(<from index>, <to index (not included)>) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice
25th Aug 2018, 1:34 PM
Mats Sibelius
Mats Sibelius - avatar