jQuery Select box search option with Chosen and Bootstrap Plugins example
In this post we will give you information about jQuery Select box search option with Chosen and Bootstrap Plugins example. Hear we will give you detail about jQuery Select box search option with Chosen and Bootstrap Plugins exampleAnd how to use it also give you demo for it if it is necessary.
There are so many plugins available to live search from bulk of select option.
Select box with live search make you easy to fetch relevant data from range of data.
Bootstrap select is a jquery plugin that have additional functionality for selct box.
Now i will tell you by two way for live search in select box.
Search Box With Live Search Option by Using Chosen Plugin With Example
This make much more easier and user friendly to select box and is a JavaScript Plugin.
- <htmllang="en">
- <head>
- <title>jQuery Chosen Plugin - One of the Best Plugin Select Box with Search Option</title>
- <linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.5.1/chosen.min.css">
- <scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
- <scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.5.1/chosen.jquery.min.js"></script>
- </head>
- <body>
- <divstyle="width:520px;margin:0px auto;margin-top:30px;">
- <h2>One of the Best Plugin for Select Box with Search Option</h2>
- <selectclass="livesearch"style="width:400px;">
- <option>Expert PHP</option>
- <option>Demo PHP</option>
- <option>PHP Tutorials</option>
- <option>PHP Framework</option>
- <option>PHP Libraries</option>
- <option>HTML</option>
- <option>CSS</option>
- <option>JS</option>
- <option>MySQL</option>
- </select>
- </div>
- <scripttype="text/javascript">
- $(".livesearch").chosen();
- </script>
- </body>
- </html>
<html lang="en"><head> <title>jQuery Chosen Plugin - One of the Best Plugin Select Box with Search Option</title> <link rel="stylesheet" href="#"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.5.1/chosen.jquery.min.js"></script></head><body><div style="width:520px;margin:0px auto;margin-top:30px;"> <h2>One of the Best Plugin for Select Box with Search Option</h2> <select style="width:400px;"> <option>Expert PHP</option> <option>Demo PHP</option> <option>PHP Tutorials</option> <option>PHP Framework</option> <option>PHP Libraries</option> <option>HTML</option> <option>CSS</option> <option>JS</option> <option>MySQL</option> </select></div><script type="text/javascript"> $(".livesearch").chosen();</script></body></html>
Search Box With Live Search Option by Using Bootstrap Select Plugin With Example
You can use bootsrap data live search by simple assign attribute to select box with data-live-search="true"
- <html>
- <head>
- <title>Bootstrap Live Search Plugin - One of the Best Plugin Select Box with Live Search Option</title>
- <linkhref="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"rel="stylesheet">
- <linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css"/>
- </head>
- <body>
- <divclass="container">
- <h2>One of the Best Plugin for Select Box with Data Live Search Option</h2>
- <divclass="row">
- <selectclass="selectpicker"data-show-subtext="true"data-live-search="true">
- <option>Expert PHP</option>
- <option>Demo PHP</option>
- <option>PHP Tutorials</option>
- <option>PHP Framework</option>
- <option>PHP Libraries</option>
- <option>HTML</option>
- <option>CSS</option>
- <option>JS</option>
- <option>MySQL</option>
- </select>
- </div>
- </div>
- <scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
- <scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2https://www.onlinecode.org/js/bootstrap.min.js"></script>
- <scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0https://www.onlinecode.org/js/bootstrap-select.min.js"></script>
- </body>
- </html>
<html> <head> <title>Bootstrap Live Search Plugin - One of the Best Plugin Select Box with Live Search Option</title> <link href="#" rel="stylesheet"> <link rel="stylesheet" href="#" /> </head> <div > <h2>One of the Best Plugin for Select Box with Data Live Search Option</h2> <div > <select data-show-subtext="true" data-live-search="true"> <option>Expert PHP</option> <option>Demo PHP</option> <option>PHP Tutorials</option> <option>PHP Framework</option> <option>PHP Libraries</option> <option>HTML</option> <option>CSS</option> <option>JS</option> <option>MySQL</option> </select> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2https://www.onlinecode.org/js/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0https://www.onlinecode.org/js/bootstrap-select.min.js"></script></html>
I prefer you to go with Bootstrap Live Search Plugins.
Hope this code and post will helped you for implement jQuery Select box search option with Chosen and Bootstrap Plugins example. 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