Turn an html input box to a duration picker, without jQuery
npm install html-duration-picker!npm
!Push Basic Tests


html-duration-picker.js is a very tiny JS library used for transforming a native HTML text input into a duration picker. The aim is for the picker to feel like a native element as much as possible.
BEFORE
AFTER
Why use html-duration-picker?
- Tiny (< 10 kb)
- No additional dependencies (CSS, jQuery, etc)
- Bootstrap 3 and Bootstrap 4 Compatible
- Angular Compatible
- You can modify and improve it :-)
- Absolutely FREE!
Apache-2.0
This project follows the all-contributors specification. Check out the list of CONTRIBUTORS.md.
Contributions and suggestions are very welcome and wanted. I try to respond to pull requests within 48 hours. For more information see CONTRIBUTING.md.
See DOCUMENTATION.md for instructions on how to install and use it in your project.