Mobile friendly Sliding Date Picker Plugin futureDatepicker - Download Mobile-friendly Sliding Date Picker Plugin - futureDatepicker

Download Mobile-friendly Sliding Date Picker Plugin – futureDatepicker

Posted on

This time I will share jQuery Plugin and tutorial about Mobile-friendly Sliding Date Picker Plugin – futureDatepicker, hope it will help you in programming stack.

Mobile friendly Sliding Date Picker Plugin futureDatepicker - Download Mobile-friendly Sliding Date Picker Plugin - futureDatepicker
File Size: 12.3 KB
Views Total: 3673
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

futureDatepicker is a beautiful, responsive, mobile-friendly jQuery based date picker that slides out from the bottom of the screen when a specific date input is clicked/tapped.

How to use it:

1. Load the style sheet jquery.futureDatepicker.min.css in the header of your html document.

1 <link href="jquery.futureDatepicker.min.css" rel="stylesheet">

2. Create a normal text field to accept the selected date.

1 <input id="date" type="text" name="date" placeholder="Click to choose date">

3. Load jQuery JavaScript library and the jquery.futureDatepicker.min.js at the end of the html document.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="jquery.futureDatepicker.js"></script>

4. Initialize the date picker with default options.

1 $('#date').futureDatepicker();

5. All default configuration options.

01 $('#date').futureDatepicker({
02    
03   //  weeks: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
04   weeks: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
05   weekabbrs: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
06  
07   months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
08   monthabbrs: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
09  
10   // choose between values in options.weeks or options.weekabbrs
11   displayWeekAbbr: true,
12  
13   // choose between values in options.months or options.monthabbrs
14   displayMonthAbbr: false,
15  
16   // left most day in the calendar
17   // 0 - Sunday, 1 - Monday, ... , 6 - Saturday
18   startIn: 0,
19  
20   // number of future months
21   futureMonths: 12,
22  
23   // use as a datepicker
24   datepicker: true,
25  
26   // status bar at the bottom
27   statusBar: false,
28  
29   // show full month names in the background
30   showBgMonths: true,
31  
32   // additional class
33   additionalClass: '',
34  
35   // before date is picked
36   beforePick: function () { return false; },
37  
38   // after date is picked
39   afterPick: function () { return false; }
40  
41 });

Change log:

2016-06-01

  • Remove click event from the inactive elements

2016-05-31

  • disable keyboard input

This awesome jQuery plugin is developed by alexmicic. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net