The months after the current one are only removed in the current year since they are not available because of the
maxDate setting. In previous years all months are available for selection.
BTW, your
maxDate setting should be '0' for today, and you can combine all the options into one call:
- $(function() { // Shorthand for $(document).ready(function() {
- $('#registrationOneColumnFormbirthDateStr').datepicker({
- changeMonth: true, changeYear: true, yearRange: 'c-100:c+0',
- minDate: new Date(1900, 1 - 1, 1), maxDate: 0
- });
- });