0
私はこのdatepickerに取り組んでいます。私のコードは別に問題なく動作しますが、アプリケーション全体で使用すると、日付ラベルの横に空のテキストボックスが表示されます。私はplunkrを作成しました。助けが必要。Jquery Datepicker for month and monthのみ
私の全体のコードが巨大であるので、check hereとしてください。
$(function() {
$('.date-picker').datepicker({
changeMonth: true,
changeYear: true,
showButtonPanel: true,
dateFormat: 'MM yy',
onClose: function (dateText, inst) {
var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
$(this).datepicker('setDate', new Date(year, month, 1));
}
});
});