A simple date selection library for choosing year, month, and day with dynamic options based on current date.
npm install simple-date-selectorFor the full documentation, visit the GitHub repository.
bash
npm i simple-date-selector
`
$3
`html
`
Usage
$3
Add the following dropdowns in your HTML.
`html
`
$3
`javascript
// Assign custom IDs to the year, month, and day dropdowns.
// Use element(), only when you have custome IDs for the dropdowns.
dateSelector.element('yearId', 'monthId', 'dayId');
// Add a custom range yaers dropdowns
dateSelector.addYears('2000', 'now');
// Set pre-select values
dateSelector.initialize('2020', '7', '7');
``