JavaScript Library That Converts A Select Box Into A Custom Dropdown

Advanced Dropdown Select is a JavaScript library that turns a normal select box into a custom dropdown list, with support for direct search, option images, multiple selections, and more.

custom select dropdown, custom select option css, select dropdown css style examples, how to display selected value of dropdownlist, html dropdown form

How to make use of it:

1. Include the stylesheet select.min.css and JavaScript select.min.js on the page.

<link rel="stylesheet" href="select.min.css" />
<script src="select.min.js"></script>

2. Add the following HTML data attributes to the <select> element and the library will do the rest.

<select 
  name="test" 
  data-multiple="true" 
  data-replace="jselect" 
  data-locale="en" 
  data-search="true" 
  data-placeholder="Choose your region">
  <optgroup label="North West">
      <option value="VDA" data-img="https://image.divscode.com/img/vda.png">Aosta Valley / Vallée d'Aoste</option>
      <option value="LIG" data-img="https://image.divscode.com/img/lig.png">Liguria</option>
      <option value="LOM" data-img="https://image.divscode.com/img/lom.png">Lombardy</option>
      <option value="PIE" data-img="https://image.divscode.com/img/pie.png">Piedmont</option>
  </optgroup>
  <optgroup label="North East">
      <option value="BOL" data-img="https://image.divscode.com/img/bol.png">A.P. Bolzano / Bozen</option>
      <option value="TRE" data-img="https://image.divscode.com/img/tre.png">A.P. Trento</option>
      <option value="EMR" data-img="https://image.divscode.com/img/emr.png">Emilia-Romagna</option>
      <option value="FVG" data-img="https://image.divscode.com/img/fvg.png">Friuli-Venezia Giulia</option>
      <option value="VEN" data-img="https://image.divscode.com/img/ven.png">Veneto</option>
  </optgroup>
  <optgroup label="Centre">
      <option value="LAZ" data-img="https://image.divscode.com/img/laz.png">Latium</option>
      <option value="MAR" data-img="https://image.divscode.com/img/mar.png">Marche</option>
      <option value="TOS" data-img="https://image.divscode.com/img/tos.png">Tuscany</option>
      <option value="UMB" data-img="https://image.divscode.com/img/umb.png">Umbria</option>
  </optgroup>
  <optgroup label="South">
      <option value="ABR" data-img="https://image.divscode.com/img/abr.png">Abruzzo</option>
      <option value="PUG" data-img="https://image.divscode.com/img/pug.png">Apulia</option>
      <option value="BAS" data-img="https://image.divscode.com/img/bas.png">Basilicata</option>
      <option value="CAL" data-img="https://image.divscode.com/img/cal.png">Calabria</option>
      <option value="CAM" data-img="https://image.divscode.com/img/cam.png">Campania</option>
      <option value="MOL" data-img="https://image.divscode.com/img/mol.png">Molise</option>
  </optgroup>
  <optgroup label="Islands">
      <option value="SAR" data-img="https://image.divscode.com/img/sar.png">Sardinia</option>
      <option value="SIC" data-img="https://image.divscode.com/img/sic.png">Sicily</option>
  </optgroup>
</select>

Advanced Custom Dropdown Select Plugin/Github, html dropdown input


See Demo And Download

Official Website(divscode): Click Here

This superior jQuery/javascript plugin is developed by divscode. For extra Advanced Usages, please go to the official website.

Related Posts

svg-pan-zoom-container

Adding Zoom-on-Wheel and Pan-on-Drag to Inline SVG Elements

Vanilla-js module for adding zoom and panning behavior when dragging to SVG embedded elements. A lightweight Vanilla JavaScript plugin that enables zoom and pan functions on an…

html-table-sortable-js

Sorting HTML Table Vanilla JavaScript Library | Sortable.js

Sortable – Small JS vanilla table sorter makes any table with class = “sortable“, er, sortable. That is, the user can click the table header and change…

WYSIWYG-Rich-Text-Editor

WYSIWYG Rich Text Editor With jQuery And FontAwesome | RichText

RichText jQuery implementation for WYSIWYG Rich Text Editor which uses Font Awesome Iconic Font for editor icons. It is licensed under AGPL-3.0. Initialize editor Simply call .richText() on your jQuery(‘textarea’) or jQuery(‘input’)…

email-domain-autocomplete-genie

[Autocomplete] Email Domain Suggestions Like Gmail, Outlook, or More | email-genie

Email Genie allows auto-completion in the email field by providing a list of domain suggestions (gmail.com, outlook.com, etc.). This package is lightweight, flexible, compatible with libraries (jQuery,…

JavaScript-Library-for-Creating-Squircley-Magic

[Generator] JavaScript Library for Creating Squircley Magic ✨ | squircley.js

squircley.js is the core magic of Squirclular ✨ from https://squircley.app wrapped in a simple 0-dependency JavaScript library. squircley.js can generate SVG files, add square backgrounds to DOM…