Ich habe mein erstes jQuery Plugin geschrieben. Es gibt zwar schon einige Pagination Plugins für jQuery, jedoch suchte ich ein wirklich leichtgewichtiges Script für die Filmliste auf der Seite Cinematic hier im Blog.
Mit der Veröffentlichung von “jquery.tablePagination.js“ hoffe ich dass es auch euch einen Vorteil bietet.
Github Repository (Download) – Demo auf jsFiddle.net
Usage
$('table').tablePagination({
perPage: 20, // Items per Page
initPage: 1, // Set Page on start
position: 'bottom', // Position of pagination [top|bottom]
paginationClass: 'tablePagination' // CSS Class for <ol>
});