Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 745 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 745 Bytes

Native-JS-Date-Picker

A simple date picker popup, where the user can select a date and set it to a html element

Getting Started

Just include "date-picker.js" in your html page
It creates a Date_picker object called date_picker, all you need to do is to assign an onclick event to an element calling the function "date_picker.open()" with the output element as a parameter, if the output element is the same one you signed the event you can just pass "this" as the parameter

<input type="text" onclick="date_picker.open(this)">

Examples

You can see examples and different themes at https://atlasncz.github.io/Native-JS-date-picker/

Authors