Fork me on GitHub

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

Filter Select Control Usage

Filter 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>	
<!-- Filter DropDown Bundle -->			
<script src="jplist.filter-dropdown-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">						
		<!-- Select DropDown Control -->
			  <option data-path="default">Filter by category</option>
			  <option data-path=".architecture">Architecture</option>
			  <option data-path=".christmas">Christmas</option>
			  <option data-path=".food">Food</option>
			  <option data-path=".nature">Nature</option>
			  <option data-path=".other">Other</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>