Dynamic Dual List Picker In Pure JavaScript | ListPicker.js

ListPicker.js is a JavaScript plugin that creates lists from which you can select items, toggle between items, and return your choices.

two side multiselect plugin, dual listbox get selected value, dual list box example, pure js dual list box component

Table of Contents

How to make use of it:

1. Insert the javascript and the style sheet into the menu picker on the HTML page.

<link rel="stylesheet" href="src/list-picker.css">
<script src="src/list-picker.js"></script>

2. The basic HTML structure of the list picker.

<div class="list-picker">
  <ul id="options" class="list-picker-list">
    <li class="list-picker-list-item">Item</li>
  <ul id="picks" class="list-picker-list"></ul>

3. Set up your list items in a JavaScript array like this:

var list = ['ActionScript', 'CSS', 'C#', 'HTML', 'Java', 'JavaScript', 'Python', 'Ruby', 'Swift'];

4. Configure the menu picker with default settings.

var listPicker = new ListPicker({
    list: list

5. All configuration options.

var listPicker = new ListPicker({
    list: list,   // Array list
    gap: 1,       // Gap between items
    order: 'asc', // Ordering in second list
    reset: true   // Reseting when picked 

6. Get the selected items.



dragDefine if items are draggablebooleanfalse
fixedDefine if items’ top position is fixedbooleanfalse
gapSpace between itemsnumber0
listList of valuesarraynull
orderDefine if items are reorderablebooleanfalse


templateReturn a custom template inside the list item

Dynamic Dual List Picker, ListPicker.js Plugin/Github

See Demo And Download

Official Website(fabiomrosa): Click Here

This superior jQuery/javascript plugin is developed by fabiomrosa. For extra advanced usage, please go to the official website.

Related Posts


How to Create a Simple Cookie Banner Consent Using Bootstrap 4

Cookie Consent Popup Javascript – Quick and simple tutorial for creating a simple Bootstrap cookie banner. If you have a website or blog with people visiting or…


Create Custom HTML Terminals With Pure JavaScript | shell.js

Custom HTML Terminals is A JavaScript library to create HTML terminals on web pages. The shell js JavaScript library offers a straightforward method to create Ubuntu, OS X,…


Bootstrap Alert, Confirm, and Flexible Dialog Boxes | Bootbox

Bootbox.js is a small JavaScript library that allows you to create programming dialogs using Bootstrap templates, without having to worry about creating, managing, or removing any required…


An Accessible Touch-enabled Slider Web Component | fg-carousel

fg-carousel Slider – A simple & modern slider web component to create versatile, accessible, touch-enabled picture carousels utilizing CSS scroll snap, Custom Element, and Intersection Observer API….


A Lightweight and Efficient Tags Input Component in Vanilla JS | tagify

tagify transforms an input field or textarea into a tags component, in an easy and customizable way, with great performance and a small code footprint, full of…


A Lightweight Library to Copy Text to Clipboard | CopyJS

CopyJS is a lightweight JavaScript library that allows you to copy plain text or HTML content to the clipboard. Must Read: Tiny Library for Copy Text In…