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 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, }); }
Be the first to know about new updates and exclusive discounts. No spam, just great offers!
How about
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© Herozi Design & Develop by Codebucks.