title: Search function in select options using Bootstrap 4
body: <p>When clicking on select, there are no options available.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
    $('.selectpicker').selectpicker();
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"&gt;
  
  
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css" rel="stylesheet" /&gt;
  
  
  &lt;select class="form-control selectpicker" name="part" data-live-search="true" required&gt;
    &lt;option value="Select Part"&gt;Select Part&lt;/option&gt;
    &lt;option value="Part 1" data-tokens="Part 1"&gt;Part 1&lt;/option&gt;
    &lt;option value="Part 2" data-tokens="Part 2"&gt;Part 2&lt;/option&gt;
    &lt;option value="Part 3" data-tokens="Part 3"&gt;Part 3&lt;/option&gt;
    &lt;option value="Part 4" data-tokens="Part 4"&gt;Part 4&lt;/option&gt;
    &lt;option value="Part 5" data-tokens="Part 5"&gt;Part 5&lt;/option&gt;
    &lt;option value="Pravesh Pariksha" data-tokens="Pravesh Pariksha"&gt;Pravesh Pariksha&lt;/option&gt;
  &lt;/select&gt;
  
  
  &lt;script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/js/bootstrap-select.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When clicking on select, there are no options available.</p>