Skip to content

A simple way to implement smart date select boxes. Given month, day, and year select boxes, this plugin will automatically populate the day select box with the proper amount of days for a given year and month combination, taking leap years into account.

Notifications You must be signed in to change notification settings

aaarrrggh/jQuery-Date-Select-Boxes-Plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple way to implement smart date select boxes. Given month, day, and year select boxes, this plugin will automatically populate the day select box with the proper amount of days for a given year and month combination, taking leap years into account.

Demo: http://www.nickabusey.com/jquery-date-select-boxes-plugin/

Usage: $().dateSelectBoxes($('#birthMonth'),$('#birthDay'),$('#birthYear'), keepLabels);

Where keepLabels is a boolean you can set to preserve the first element in the select (e.g., a descriptive select option used instead of a separate label element (e.g., 'Day'))

Uses and includes the jQuery Select Box Manipulation plugin http://www.texotela.co.uk/code/jquery/select/

About

A simple way to implement smart date select boxes. Given month, day, and year select boxes, this plugin will automatically populate the day select box with the proper amount of days for a given year and month combination, taking leap years into account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%