onlinecode

Bootstrap multiselect dropdown in popup using popupMultiSelect plugin

Bootstrap multiselect dropdown in popup using popupMultiSelect plugin

In this post we will give you information about Bootstrap multiselect dropdown in popup using popupMultiSelect plugin. Hear we will give you detail about Bootstrap multiselect dropdown in popup using popupMultiSelect pluginAnd how to use it also give you demo for it if it is necessary.

In this example, i will share with you example of multiselect listbox in popup using popupMultiSelect.js plugin. popupMultiSelect plugin you can simply use in your php, laravel, codeigniter, angularjs projects.

We may sometime require to make multiple select on select box. You can simply use select box with multiple attribute. But if you are using Bootstrap then you can make it pretty good layout. Yes in this example we will use popupMultiSelect plugin for multiselect dropdown box. popupMultiSelect plugin provide us when you click on select box it will open popup and display all options there. You can simply choose as you want. popupMultiSelect also provide validation for max select limit and etc.

So, Here you can see bellow code how to use multiselect() of jquery function.

Code:

$("#my-language").multiselect(

{

title: "Select Language",

maxSelectionAllowed: 5

});

Now we will make on simple full example of popupMultiSelect So, you have to copy bellow code and use it. You can also see bellow preview for this example.

Preview:

Example:

Also see:Laravel notification alert using bootstrap notify plugin example

<!DOCTYPE html>

<html>

<head>

<title>Bootstrap Popupmultiselect Example</title>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>

<!-- Latest compiled and minified CSS -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<link rel="stylesheet" href="http://harshniketseta.github.io/popupMultiSelect/dist/stylesheets/multiselect.min.css">

<!-- Latest compiled and minified JavaScript -->

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<script src="http://harshniketseta.github.io/popupMultiSelect/dist/javascripts/multiselect.min.js"></script>

</head>

<body>


<div >

<h1>Bootstrap Popupmultiselect Example</h1>

<select multiple name="language" id="my-language">

<option value="1">Laravel</option>

<option value="2">PHP</option>

<option value="3">Codeigniter</option>

<option value="4">JQuery</option>

<option value="5">HTML</option>

<option value="6">CSS</option>

<option value="7">AngularJS</option>

</select>

</div>


<script type="text/javascript">

$("#my-language").multiselect(

{

title: "Select Language",

maxSelectionAllowed: 5

});

</script>


</body>

</html>

You can get more information about this plugin from here : popupMultiSelect.

I hope it can help you…

Hope this code and post will helped you for implement Bootstrap multiselect dropdown in popup using popupMultiSelect plugin. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Exit mobile version