https://github.com/jrie/sqdropdown
A simple javascript select box enhancement which provides searching and nicer multiple selections.
https://github.com/jrie/sqdropdown
dropdown html-select javascript multiple search single
Last synced: 6 months ago
JSON representation
A simple javascript select box enhancement which provides searching and nicer multiple selections.
- Host: GitHub
- URL: https://github.com/jrie/sqdropdown
- Owner: jrie
- License: gpl-3.0
- Created: 2022-02-19T14:57:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-03T05:34:19.000Z (over 3 years ago)
- Last Synced: 2025-02-03T05:28:33.655Z (8 months ago)
- Topics: dropdown, html-select, javascript, multiple, search, single
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqDropdown
A simple javascript select box enhancement which provides searching and nicer multiple selections.### Features
* Select single or multiple values
* Search select dropdown values while typing into the main area of focus
* Offers a somehow pleasent view of items
* Simple setup### Demo
A live demo can be found [here](https://jrie.github.io/sqDropdown/).
### Usage
See `index.html` for details on how to setup the items. Or read on.In short, create a `select` element or elements with a base option structure, like you would do normally. You can also use `selected` options.
Add the class `sqDropdown` to the `select` element or elements.
Now include the `css` and `js` code which you like to use, either the regular or the minified version. The `index.html` shows the unminified setup. After the css class is added and the script is loaded, the magic will appear.
Reload the page and check out the nicely put dropdowns.