A Simple Dual Listbox Component in Pure Javascript

Dual Listbox is to make your multiple selections beautiful and easy to use using only javascript. No other frameworks/libraries are required. This JavaScript plug-in turns a normal selection box into a searchable double list box where users can move options between two selection panels.

dual list box stackblitz, dual list box material design, dual list box with search, dual list component, dual list box github, dual list box jquery

How to make use of it:

1. Add the “dual-listbox.css” stylesheet and the “dual-listbox.js” JavaScript file to the web page.

<link href="dist/dual-listbox.css" rel="stylesheet">
<script src="dist/dual-listbox.js"></script>

2. Configure DualListbox in the target selection box.

<select class="demo" multiple>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
  <option value="4">Four</option>
  <option value="5">Five</option>
  <option value="6">Six</option>
  <option value="7">Seven</option>
  <option value="8">Eight</option>
  <option value="9">Nine</option>
  <option value="10">Ten</option>
demo = new DualListbox('.selectDemo');

3. The default options for customizing the dual list box can be overwritten.

  addEvent: function(value) {
  removeEvent: function(value) {
  availableTitle: 'Different title',
  selectedTitle: 'Different title',
  addButtonText: '>',
  removeButtonText: '<', addAllButtonText: '>>',
  removeAllButtonText: '<<',
  options: [
      {text:"Option 1", value: "OPTION1"},
      {text:"Option 2", value: "OPTION2"},
      {text:"Selected option", value: "OPTION3", selected:true}

Pure JS Dual List Box Component, Dual Listbox Plugin/Github

See Demo And Download

Official Website(maykinmedia): Click Here

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

Related Posts


Vuejs Lightweight Prompt Based On Promise And Confirm Dialog

VUEJS DIALOG PLUGIN is a lightweight, promise-based, prompt, and dialog-based alert. Important updates The dialog will always be resolved by an object. (ie a callback to continue…


Insert HTML Into Your Browser Alert & Confirm Dialog | alert4html.js

alert4html.js is a JavaScript library that enables you to insert HTML directly into your browser alerts while simulating Chrome alerts as well. alert4html.js is an alternative to…


Simple and Lightweight Flexbox Carousel Plugin With JavaScript | flexCarousel.js

Flexbox Responsive Slider – flexCarousel.js plugin is a simple and lightweight plug-in from Flexbox carousel ES6 JavaScript. An unofficial fork by Slick Carousel. Flex Carousel is a…


Multi-Level Dropdown Works With Bootstrap 5

Bootstrap 5 Multi-Level Dropdown, using the official HTML without adding additional CSS styles and classes, it’s just like the original support. Not all of the things listed…


[Bootstrap 5] Responsive Navbar With off-canvas Display on Mobile

The Bootstrap 5-off-canvas navigation menu is a responsive navigation system that combines BS5 components outside of the canvas and navbar. Must Read: Pure CSS Mobile-friendly Responsive Table…


[Zepto] A Simple and Fully Accessible Checkboxes and Radio Buttons | icheck

iCheck is Highly¬†customizable checkboxes and radio buttons for jQuery and Zepto. This plugin allows you to create fully accessible touch checkboxes and radio buttons with 25 built-in…