The ultimate, lightweight jQuery datepicker, with features such as custom styling, draggable date range picking, inline calendars, date limits and much more...
Usage
Simply include jQuery and then the DatePickr JavaScript and CSS files.
<divid="datepickr-calendar-4"></div><script>$("#datepickr-calendar-4").DatePickr({
onChange:function(){alert("Changed!");},
onMonthChange:function(e){alert("Month went one "+((e.direction ==-1)?"backward":"forward"));}});</script>
<inputid="datepickr-calendar-5"type="text"/><script>$("#datepickr-calendar-5").DatePickr({
onChange:function(){alert("Changed!");},
onShow:function(){alert("Datepickr is being shown!");},
onHide:function(){alert("Datepickr is being hidden!")},
onMonthChange:function(e){alert("Month went one "+((e.direction ==-1)?"backward":"forward"));}});</script>
Input with minimum and maximum dates and a custom position.
<inputid="datepickr-calendar-6"type="text"/><script>$("#datepickr-calendar-6").DatePickr({
datemin:newDate().addDays(6),
datemax:"2 September 2020",
position:"right"});</script>