Skip to content

bbbbx/simple-date-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

11 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

simple-date-picker

šŸ“…Just a simple date picker component.

Usage

Live demo

Firstly, add simple-date-picker.css to your HTML file:

<link rel="stylesheet" href="./src/simple-date-picker.css" />

Second, Add simple-date-picker.js to your HTML body's bottom, and init a datepicker:

<body>
<!-- assume you have an input with the "date" id -->
<input type="text" id="date"/>

<script type="text/javascript" src="./src/simple-date-picker.js"></script>
<script type="text/javascript">
  var $date = document.querySelector('#date');
  // initial datepicker with the input Node
  datepicker.init($date);
</script>
</body>

Ok, you done!

Your page should look like:

example.gif

If you find any issues, please submit āœ they to me.

Enjoy it~ ā˜ŗ

License

MIT

About

šŸ“…Just a simple JS date picker component, NO dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published