Skip to content

A lightweight vanilla javascript library that replaces native select elements with customizable dropdowns

Notifications You must be signed in to change notification settings

janstieler/nice-select2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Nice Select

A lightweight jQuery plugin that replaces native select elements with customizable dropdowns.

Install

npm i nice-select2

Usage

Include nice-select2 script.

<script src="path/to/nice-select2.js"></script>

Include the styles, either the compiled CSS...

<link rel="stylesheet" href="path/to/nice-select2.css">

Or import nice-select2 using ES6 syntax

import NiceSelect from 'nice-select2';
@import '~nice-select2/dist/css/nice-select2.css';
// or
@import '~nice-select2/src/scss/nice-select2.scss';

Finally, initialize the plugin.

  NiceSelect.bind(document.getElementById("a-select"));

Full documentation and examples at https://bluzky.github.io/nice-select2/.

About

A lightweight vanilla javascript library that replaces native select elements with customizable dropdowns

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 68.0%
  • SCSS 32.0%