日付ピッカーの選択は、ユーザーが日付を選択しない限り、年または月を変更しません。日付が選択されていない場合でも、更新するために、月/年を探して:jquery UI Datepickerが月または年を更新できません - 日付を選択する必要があります
<input class="childdob dateinput datepickers hasDatepicker valid"
placeholder="Date of Birth*" name="child_dob[0]" type="text">
$(function() {
$('form').on('focus', '.datepickers', function(event){
event.preventDefault();
$(this).datepicker({
changeMonth: true,
changeYear: true,
yearRange: '1990:+0',
showButtonPanel: true,
dateFormat: 'mm/dd/y',
constrainInput: false
}).datepicker('show');
});
});
私が正しく理解していた場合、これはあなたが探しているものかもしれ:https://stackoverflow.com/質問/ 15044668/jquery-datepicker-get-month-and-year-shown-not-current。 'onChangeMonthYear'に関数をバインドする必要があります。 – emshore