jQuery Select box search option with Chosen and Bootstrap Plugins example

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.

  1. <htmllang="en">
  2. <head>
  3. <title>jQuery Chosen Plugin - One of the Best Plugin Select Box with Search Option</title>
  4. <linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.5.1/chosen.min.css">
  5. <scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
  6. <scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.5.1/chosen.jquery.min.js"></script>
  7. </head>
  8. <body>
  9. <divstyle="width:520px;margin:0px auto;margin-top:30px;">
  10. <h2>One of the Best Plugin for Select Box with Search Option</h2>
  11. <selectclass="livesearch"style="width:400px;">
  12. <option>Expert PHP</option>
  13. <option>Demo PHP</option>
  14. <option>PHP Tutorials</option>
  15. <option>PHP Framework</option>
  16. <option>PHP Libraries</option>
  17. <option>HTML</option>
  18. <option>CSS</option>
  19. <option>JS</option>
  20. <option>MySQL</option>
  21. </select>
  22. </div>
  23. <scripttype="text/javascript">
  24. $(".livesearch").chosen();
  25. </script>
  26. </body>
  27. </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"

  1. <html>
  2. <head>
  3. <title>Bootstrap Live Search Plugin - One of the Best Plugin Select Box with Live Search Option</title>
  4. <linkhref="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"rel="stylesheet">
  5. <linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css"/>
  6. </head>
  7. <body>
  8. <divclass="container">
  9. <h2>One of the Best Plugin for Select Box with Data Live Search Option</h2>
  10. <divclass="row">
  11. <selectclass="selectpicker"data-show-subtext="true"data-live-search="true">
  12. <option>Expert PHP</option>
  13. <option>Demo PHP</option>
  14. <option>PHP Tutorials</option>
  15. <option>PHP Framework</option>
  16. <option>PHP Libraries</option>
  17. <option>HTML</option>
  18. <option>CSS</option>
  19. <option>JS</option>
  20. <option>MySQL</option>
  21. </select>
  22. </div>
  23. </div>
  24. <scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  25. <scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2https://www.onlinecode.org/js/bootstrap.min.js"></script>
  26. <scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0https://www.onlinecode.org/js/bootstrap-select.min.js"></script>
  27. </body>
  28. </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.

Show Demo For Bootstrap
Show Demo For Chosen

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

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

4  +  5  =  

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US