Press "Enter" to skip to content

A Multi-selection Dropdown Plugin In Vanilla Javascript | sellect.js

sellect.js is a multi-select dropdown plugin made in vanilla javascript.

multiselect dropdown with checkbox example, react multiselect dropdown with search, multiselect react dropdown npm

Install Choices

  • bower install --save sellect.js
  • npm install --save sellect.js

jQuery Multiselect Plugin With Two Sides | multiselect.js

How to make use of it:

1. Include required Font Awesome for icons.

<link rel="stylesheet" href="font-awesome.css">

2. Download and upload the sellect.js JavaScript stylesheet into the document.

<link rel="stylesheet" href="sellect.css">
<script src="sellect.js"></script>

3. Create a normal input field:

<input type="text" id="my-element">

4. Create a new select element and specify the parent and destination lists in JavaScript.

var mySellect = sellect("#my-element", {
    originList: ['banana', 'apple', 'pineapple', 'papaya', 'grape', 'orange', 'grapefruit', 'guava', 'watermelon', 'melon'],
    destinationList: ['banana', 'papaya', 'grape', 'orange', 'guava']

5. Configure the plugin.


6. Callback functions are available.

var mySellect = sellect("#my-element", {
    // Called when the destination list receives a new item
    onInsert: function( event, item ) {},
    // Called when an item is removed from destination list
    onRemove: function( event, item ) {}

7. API methods.

// Return a list of selected items
// Return a list of unselected items

Multi-select Dropdown Component With Vanilla JavaScript, sellect.js Plugin/Github

See Demo And Download

Official Website(lidia-freitas): Click Here

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

Be First to Comment

    Leave a Reply

    Your email address will not be published.