https://github.com/systemsoftware/custom-select
Allow users to add a custom value to select elements
https://github.com/systemsoftware/custom-select
Last synced: about 1 year ago
JSON representation
Allow users to add a custom value to select elements
- Host: GitHub
- URL: https://github.com/systemsoftware/custom-select
- Owner: systemsoftware
- License: mit
- Created: 2024-07-16T00:02:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T00:06:18.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T13:22:04.564Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# custom-select
Allow users to add a custom option to a select dropdown
```html
1
```
That's it! The script will automatically add a custom option to the select dropdown. The custom option will be added to the end of the dropdown and will be displayed as "Enter Custom". When the user selects the custom option, a prompt will appear asking the user to enter a custom value. The custom value will be added to the dropdown and selected automatically.