Fork me on GitHub

Remove All Items Using API

<script>
$('document').ready(function(){
	var $demo = $('#demo');
	
	//init jplist first time
	$demo.jplist({				
		itemsBox: '.list' 
		,itemPath: '.list-item' 
		,panelPath: '.jplist-panel'	
	});
	
	//remove items from jPList collection
   $demo.jplist({
		command: 'empty'
	});
	
});
</script>