Search In Select Using JQuery

Kailash Singh

Search In Select Using JQuery

Published Feb 08,2019 by Kailash Singh

1 Comment     1160 Views    

Here I am coming back to custom select is a jQuery plugin that converts a normal select into a customizable, searchable, cross-browser and mobile-friendly select list.

How to use it:


1. Include the jQuery library together with select2.min.css and select2.min.js in the page.

<script src="">
<link href="" rel="stylesheet" />
 <script src=""></script>

2. Create a standard html select list.

<h2>Search In Select Using Jquery</h2>
<select class="form-control" id="name">
   <option value="">---Select Name---</option>

3. To initialize the plugin simply call the plugin like this.

                   placeholder: "Select Name",
                selectOnClose: true

Hope this will help our developers.

1 Comment

Prabhat Singh Feb 08, 2019

It's works thanks