Fork me on GitHub

jQuery jPList plugin is deprecated. Please check pure JavaScript (ES6) jPList Library alternative instead.

Items Per Page Select Control Usage

Items Per Page Select Control

Add jPList scripts to the HEAD:

<!-- jPList Core -->		
<link href="jplist.core.min.css" rel="stylesheet" type="text/css" />
<script src="jplist.core.min.js"></script>	
<!-- Pagination Bundle -->			
<link href="jplist.pagination-bundle.min.css" rel="stylesheet" type="text/css" />
<script src="jplist.pagination-bundle.min.js"></script>
		itemsBox: '.list' 
		,itemPath: '.list-item' 
		,panelPath: '.jplist-panel'	

Add basic HTML structure to the BODY:

<!-- demo -->
<div id="demo">
	<!-- panel -->
	<div class="jplist-panel">						
		<!-- items per page select -->
		   <option data-number="3"> 3 per page </option>
		   <option data-number="5"> 5 per page </option>
		   <option data-number="10" data-default="true"> 10 per page </option>
		   <option data-number="all"> view all </option>
	<!-- HTML data -->   
	<div class="list">
		<!-- item 1 -->
		<div class="list-item">	
		<!-- item 2 -->
		<div class="list-item">	
	<!-- no results found -->
	<div class="jplist-no-results">
		<p>No results found</p>