Create multiple select with select all and search feature using jquery bootstrap multiselect plugin

bootstrap multiselect plugin

In this supplement I am going to introduce awesome Jquery Plugin to Create union choose as soon as choose all and search feature using jquery bootstrap multiselect plugin. Bootstrap Multiselect is a JQuery based plugin to have the funds for an intuitive enthusiast interface for using pick inputs in the impression of the complex attribute facility. Instead of a choose a bootstrap button will be shown dropdown menu containing the single options as checkboxes width search feature.

Create multiple select with select all and search feature using jquery bootstrap multiselect plugin

Lets Start Configuration

This plugin dependent regarding jquery and twitter bootstrap library correspondingly pretentiousness to partner both the libraris later member  bootstrap-multiselect.js,bootstrap-multiselect.css.

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="bootstrap-multiselect.css" type="text/css"/>
 
<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 type="text/javascript" src="bootstrap-multiselect.js"></script>

Now handily use HTML to create your choose input which you nonappearance to slope into a multiselect. Remember to set the join up attribute as to profit a exact multiselect but reach not conscious, the plugin can moreover be used as all right choose without the compound attribute mammal finishing.
First Ill goings-on you the whole basic bootstrap multi pick crate

<select id="multiselect" multiple="multiple">
    <option value="India">India</option>
    <option value="Australia">Australia</option>
    <option value="United State">United State</option>
    <option value="Canada">Canada</option>
    <option value="Taiwan">Taiwan</option>
    <option value="Romania">Romania</option>
</select>

For creating basic compound select feature in choose bin, just thus call jqyery multiselect bureau

<script>
$(function() {  
 $('#multiselect').multiselect();
});
</script>

Create bootstrap Multi Select Box With Select All and Search Feature

For creating bootstrap Multi Select Box With Select All and Search Feature you abandoned showing off to set few properties in jquery multiselect() action when  includeSelectAllOption: true, enableFiltering: true, enableCaseInsensitiveFiltering: true song example below.

<script>
$(function() {  
 $('#multiselect').multiselect({
            includeSelectAllOption: true,
            enableFiltering: true,
            enableCaseInsensitiveFiltering: true,
            filterPlaceholder: 'Search for something...'
        }); 
});
</script>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.