Reputation: 1002
I am using jquery datepicker.I have given date range from 1964 to 1990 . But without selecting year it takes current year such as 2013.What is the problem in jquery datepicker.I have enclosed coding here.
jQuery(function(){
jQuery('.driver_dob').datepicker({
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
yearRange: '1964:1991'
});
});
Upvotes: 2
Views: 6535
Reputation: 100205
you could add defaultDate, like
jQuery('.driver_dob').datepicker({
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
yearRange: '1964:1991',
defaultDate: '01-01-1964'
});
Demo:: jsFiddle
Upvotes: 4