Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container mt-5">
    <h2>Select Dropdown with Search</h2>
  <p>A <a href="https://www.w3opensource.com/bootstrap/bootstrap-5-select-dropdown-with-search-box/">select dropdown with search functionality using Bootstrap 5</a> can be achieved by leveraging the bootstrap-select plugin, which extends Bootstrap's native select component to include search and other advanced features. </p>
  
    <select class="selectpicker" data-live-search="true">
        <option data-tokens="ketchup mustard">Hot Dog, Fries and a Soda</option>
        <option data-tokens="mustard">Burger, Shake and a Smile</option>
        <option data-tokens="frosting">Sugar, Spice and all things nice</option>
        <option data-tokens="fries">Hot Dog, Fries and a Soda</option>
        <option data-tokens="burger">Burger, Shake and a Smile</option>
        <option data-tokens="soda">Sugar, Spice and all things nice</option>
    </select>
</div>

    <!-- Footer -->
    <footer class="bg-light text-center text-lg-start mt-5">
        <div class="container p-4">
            <div class="text-center p-3">
                © 2024 -
                <a class="text-dark" href="https://www.w3opensource.com" target="_blank">W3OpenSource</a>
            </div>
        </div>
    </footer>
              
            
!

CSS

              
                
              
            
!

JS

              
                (function() {
            $('.selectpicker').selectpicker();
})(jQuery);
              
            
!
999px

Console