Minimal jQuery Plugin For Easy Birthday Picker

File Size: 3.31 KB
Views Total: 4449
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Minimal jQuery Plugin For Easy Birthday Picker

Select Birthday is a small jQuery plugin that converts year/month/day select elements into a date picker for date of birth.

See also:

How to use it:

1. Create three select lists for year/month/day input.

<select id="year"></select>
<select id="month"></select>
<select id="day"></select>

2. Load the jQuery select birthday plugin after loading jQuery library.

<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="select-birthday.js"></script>

3. Initialize the plugin to generate a birthday picker.

selectBirthday("#year", "#month", "#day", OPTIONS);

4. Config the plugin.

// initial birthday
year : 2000,
month : 01,
day : 01,

// year range
yearRange : 100,

// end year
endYear : 2015

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