Select box with search option in Jquery with example

When it comes to select the data from the drop-down list, if there is no searching in a select box, then it creates little bit trouble for users to navigate on proper data. So it is recommended to keep the searching option in the select box if there are large data.

Today we are going to share the post about a plugin name Chosen Plugin for the select box. It is very simple and easy to integrate into the project.

You have to include required JS and CSS in the main file and need to add the chosen class in the select box where you need searching.

The following is complete code, how to integrate search option in select box.

<html lang="en">
    <title>Select box with search option in Jquery with example</title>  
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>

    <div style="width:500px;margin:0px auto;margin-top:30px;">
        <h2> Select box with search option in Jquery with example </h2>
        <select class="chosen" style="width:500px;">
        <option>PHP Class</option>

<script type="text/javascript">


How to select multiple options from a drop-down list in HTML

You can also integrate the multiple select options. For that, you only need to add multiple in select box  

<select class="chosen" multiple>

You can find more detail about the plugin at

Spread the love

Related Posts

Leave a Reply

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