jQuery Select box search option with Chosen and Bootstrap Plugins example

jQuery Select box search option with Chosen and Bootstrap Plugins example

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. <html lang="en">
  2. <head>
  3. <title>jQuery Chosen Plugin - One of the Best Plugin Select Box with Search Option</title>
  4. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.5.1/chosen.min.css">
  5. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.5.1/chosen.jquery.min.js"></script>
  7. </head>
  8. <body>
  9. <div style="width:520px;margin:0px auto;margin-top:30px;">
  10. <h2>One of the Best Plugin for Select Box with Search Option</h2>
  11. <select class="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. <script type="text/javascript">
  24. $(".livesearch").chosen();
  25. </script>
  26. </body>
  27. </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. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
  5. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css" />
  6. </head>
  7. <body>
  8. <div class="container">
  9. <h2>One of the Best Plugin for Select Box with Data Live Search Option</h2>
  10. <div class="row">
  11. <select class="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. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  25. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
  26. <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/js/bootstrap-select.min.js"></script>
  27. </body>
  28. </html>

I prefer you to go with Bootstrap Live Search Plugins.

Phone: (+91) 8800417876
Noida, 201301