Dropdown Search Box Jquery Example With Select2.Min.Js
Hi friends, In this tutorial, we will discuss regarding dropdown search box jquery example with select2.min.js plugin. The default dropdown box in HTML or bootstrap does not have the option for searching data. Sometimes, we need to search for individual data from huge data sets in select boxes.
In such a case, select2.min.js plugin helps us to do so and gives us the search box option. With the help of this plugin, we can easily search for data from the select options as per our needs.
There are two ways available to use this plugin successfully
- Use the plugin from the CDN network directly.
- Download the plugin from Github and install it to use in your source code or HTML file.
How to use select2.min.js from a CDN (Content delivery network)
This plugin is available in the jsDelivr and cdnjs. These are the CDN network for jQuery. You can simply include the below lines inside the head section of your web page or HTML file.