+ 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.
4 Respostas
+ 11
Those are for lazy people. It's not even that difficulty. Try to create everything with pure language.
+ 6
Yes. Pure javascript would be even better.
+ 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
+ 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