Choice Select

Choices.js is a vanilla JavaScript plugin that converts the normal select or input into customizable select inputs with multi-select and autocomplete support.

There are few options on how to include/import Choice.js into your project.

Install from yarn

Install the Choices.js library from command prompt from the root directory of the project:

yarn add choices.js --save

Import Choices.js link from the libs.

<link rel="stylesheet" href="assets/libs/choices.js/public/assets/styles/choices.min.css"></link>
<script src="assets/libs/choices.js/public/assets/styles/choices.min.css"><script/>

Below the example how to use the package and make it working Choices.js on any page.

HTML


JavaScript

const topProductSelect = document.querySelector('#top-product-select');
if (topProductSelect) {
    new Choices(topProductSelect, {
        searchEnabled: false,
        placeholder: false,
        itemSelectText: false,
    });
}
Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Support
More for Herozi
Herozi Admin & Dashboard Template
160+

Total Pages

6+

Layouts

60+

Components

We provide quick support withing one business day to all of our customers.

© Herozi Design & Develop by  Codebucks.