Here I am going to show you how to Integrate Two side Multi Select Plugin with jQuery multiselect.js on your website and add feature like user can select one or more items and send them to the other side. multiselect.js is a small jQuery plugin that helps you improve the user experience regarding the use of multiple cross selects.It also has a sort function that can be defined in order of your needs for each multiple select.You can fully customize it via CSS, you can extend it and have as many multi selects as you want on the page. For example you can create two select box of skill set where user can select one or more skill set from first select box and send them to the other empty select See example below.
Integrate Two side Multi Select Plugin with jQuery multiselect.js
Below I am going to demonstrate a very basic two side Multi Select feature you can customise demo as per your project need.
Libraries
This plugin uses bootstrap library for designing so first include all bootstrap JS+CSS library after that include multiselect.js on page.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous">script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous">script> <script src="multiselect.min.js">script> |
HTML
Create a two sided select list In this example created two select list one is full with skill set and other is empty user can select their skill set and user can select one or more skill set from first select list and send them to the other empty select list with undo and redo feature.
|
JS
Finally Call the plugin on page and see the action.
<script> $(function() { $('#undo_redo').multiselect(); }); script> |
See live demo and download source code.
See official github repository for more information and follow for future updates.Don’t forget to read license for using above plugin in your commercial project.