Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 649 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 649 Bytes

sdate.js

Controls for selection date.

Example

Demo

Usage

Add HTML:

<div>
	<select id="sdate-day"></select>
	<select id="sdate-month"></select>
	<select id="sdate-year"></select>
</div>
<script src="src/sdate.js"></script>

Init:

var picker = selectionDate(/* onChagen callback */, /* array of month names */);

Set date:

var date = new Date();

picker.setDate(date);

Who uses?


© 2016 Yauheni Pakala | MIT