This is a small jQuery plugin with out many feature but able to work with dynamic added content by JavaScript.There are many much powerful jQuery plugin for “multiselect” box existing on github (for detail pls refenenec from the end of this page). However, some of them cannot be worked on the dynamic content added by javascipt/jQuery and this is the reason why i write this for a project. Also support dynamic data rendering (JSON+AJAX) and data ordering.
Import css and javascript
<link rel="stylesheet" type="text/css" href="res/css/jquery-multi-selection.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js">script> <script src="res/scripts/jQueryMultiSelection.js">script> |
Copy html
|
Initial plugin
$(function() { $(".jp-multiselect").jQueryMultiSelection(); }); |
See live demo and download source code.
This awesome plugin is developed by xenialaw. Visit their official github repository for more information and follow for future updates.