Amsifyselect.js is an dropdown jQuery component manipulating a native HTML select element with searchable options.
bootstrap select dropdown with search box, searchable select dropdown html, select box with search option, search box with suggestions dropdown, dropdown with search box jquery
Features:
- Supports rendering and bootstrap frameworks.
- Search box to filter through options.
- Supports single and multiple selections.
- Allows you to specify the maximum number of options to choose from.
- Optgroup is also supported.
How to make use of it:
1. Load the stylesheet “amsify.select.css” and the JavaScript “amsify.select.js” into an HTML document.
<link rel="stylesheet" href="/path/to/css/amsify.select.css" /> <script src="/path/to/cdn/jquery.slim.min.js"></script> <script src="/path/to/js/jquery.amsifyselect.js"></script>
2. To make the options searchable, add a ‘searchable’ attribute to the HTML list as follows:
<select name="country" multiple searchable> <option value="">Select Country</option> <optgroup label="Asia"> <option value="1">India</option> <option value="2">Afghanistan</option> <option value="3">Bangladesh</option> <option value="4">Nepal</option> <option value="5">Sri Lanka</option> </optgroup> <optgroup label="America"> <option value="6">USA</option> <option value="7">Canada</option> <option value="8">West Indies</option> <option value="9">Chile</option> <option value="10">Argentina</option> </optgroup> <optgroup label="Africa"> <option value="11">South Africa</option> <option value="12">Nigeria</option> <option value="13">Algeria</option> <option value="14">Somalia</option> <option value="15">Sudan</option> </optgroup> </select>
3. Call the plugin and apply the default theme to the custom select dropdown.
$('select').amsifySelect({ type : 'amsify' });
4. The plugin also works with the latest Bootstrap & Materialize frameworks.
$('select').amsifySelect({ type : 'bootstrap' });
$('select').amsifySelect({ type : 'materialize' });
5. You can also enable the search function in JavaScript.
$('select').amsifySelect({ searchable : true });
6. Determine the maximum number of options allowed to be selected.
$('select').amsifySelect({ limit: 10 });
7. Set the maximum number of stickers allowed to display.
$('select').amsifySelect({ labelLimit: 3 });
8. Customize the Clear and Close buttons displayed at the bottom of the drop-down list.
$('select').amsifySelect({ classes: { clear : '', close : '' } });
9. Refresh the selection dropdown if new options are added.
$('select').amsifySelect({ // options here }, 'refresh');
10. Destroy the dropdown selection.
$('select').amsifySelect({ // options here }, 'destroy');
Custom Select Dropdown With Search Box, jquery.amsify.select Plugin/Github, select box with search option in javascript
See Demo And Download
Official Website(amsify42): Click Here
This superior jQuery/javascript plugin is developed by amsify42. For extra Advanced Usages, please go to the official website.